How to limit zoom in QtCharts?
<p>I have implemented the zoom example from <a href="http://doc.qt.io/qt-5/qtcharts-zoomlinechart-example.html" rel="nofollow noreferrer">http://doc.qt.io/qt-5/qtcharts-zoomlinechart-example.html</a></p>
<p>Now I need to limit the zoom. I have two Y axis with values -100 to +100 (or even bigger), the other y2 axis is fixed at -pi..pi (no values outside of that range)</p>
<p>The zoom shall not be greater than the boundaries of the data ranges, or at least the limits shall be setable.</p>
<p>So how can I implement this? I found no further examples for QtCharts so far.</p>
<p>Also I would like to reset the zoom to original, let say with Backspace. How would I reset the zoom ?</p>