Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-106603

Chart axis not drawn if QLineSeries only has one point

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2
    • Charts
    • None

    Description

      It seems if a chart with a QLineSeries only has one point, or has multiple points that each have the same value, the chart axis is not drawn properly (or at all). It is drawn OK if there are 0 points.

      It can be reproduced using the DateTimeAxis Example included with Qt Creator. You just need to edit the data file (sun_spots.txt) so that it only has one entry - or make several identical copies of the same data.

      It might seem odd to want a QLineSeries with only one point - but it's for an application that plots data in real time, so the chart starts out with no data, and it's added over time,

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            e0348803 Miikka Heikkinen
            srcejon Jon Beniston
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes