I have a chart with 2 y-axes and I need to add vertical lines at some points those lines should start from y=0 and terminate at the maximum of the area (actually it doesn't matter if the line exceeds the area of the graph). If I use QLineSeries to collect the points where to draw, the points are connected and the result is something like this enter image description here
What can be another solution?
I've tried even to add some gap between points, but nothing.
PhaseSeries->append(curRec.Second, 0);
PhaseSeries->append(curRec.Second, 500);//maxValue for the phase to reach the upper side of the graph
PhaseSeries->append(QPointF(NAN, NAN));
EDIT: I've found a workaround that can be acceptable in my case:
PhaseSeries->append(curRec.Second, -500);
PhaseSeries->append(curRec.Second, 500);//maxValue for the phase to reach the upper side of the graph
PhaseSeries->append(curRec.Second, -500);
I know, it's not a super elegant solution, but it works.