Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Enabling QBoxPlotSeries, QLineSeries and QScatterSeries to display QVariant NULL as gap



  • As far as I am aware, the three series display the null as zero. Has someone found a way to enable them to display the null as gap? If not, please vote for feature request for it (https://bugreports.qt.io/browse/QTBUG-58330).



  • I have voted for this feature.
    Have you found any alternative solution for this?



  • You can dynamically create a new line series, keep appending data till u need gap, after gap again create a new line series and keep appending data to the recently created line series.
    Using count you can keep track of how many line series has been created, and using removeallseries/removeseries(index) you can clear the dynamically created series.

    If you have more gaps, it will affect the performance, since we are creating a line series dynamically, load time will increase.

    This how I handled the above scenario,


Log in to reply