[QChart] The Spline chart has an overshoot in displaying the change in value
Solved
General and Desktop
-
Hi.
I am testing a dynamic line chart, and I have an overshoot problem in displaying the value change (Y from 6 to 4).
And I can't figure out what is causing it and how to avoid it.
In the image you can see the series of values (without problems) loaded into the chart with
auto xySeries = static_cast<QtCharts::QXYSeries *>(series); xySeries->replace( dataList );
-
I changed the title, because the problem is related to QSplineSeries, QLineSeries does not have overshoots for value changes.
From what I understand QSplineSeries tries to smooth out value changes, and the overshoots are a side effect of the filter applied to do so.
With QLineSeries
-
-