Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.2
-
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,