QtCharts, Limit Zoom.
I am trying to build a desktop application with QtCharts. I need line plots with 2 Y axis, first is having any range, the second is limited to -pi...pi.
Now I implemented the zoom as shown in the example: http://doc.qt.io/qt-5/qtcharts-zoomlinechart-example.html
I wonder however how to limit this zoom. I do not want the zoom to be larger than the range of the data.
The first idea was to get a signal such as "OnZoom" and modify the range. However nothing like that exists.
Why and how would this be solved ?
Also I do not know how to get the current range of the axis. I have a QChart available, but need to know the range of xaxis and both yaxis.
http://doc.qt.io/qt-5/qchart.html#axes gives me only a list of Axes.