Any sample code for Zoom in Zoom Out feature in X Axis for TouchGFX Designer?
So if we use TouchGFX Designer, it provides a sample template project code for zoom in and zoom out feature for dynamic graph in Y axis. However it does not seem to have sample fox X-axis.
I tried to experiment this by using setGraphRangeX() but it does not achieve what I want. In here, the X-axis range will be changed accordingly, but the graph still sweep the entire data points.
E.g. originally I setup a dynamic graph with data point 100 and x axis 0 - 99. Then I call setGraphRangeX(0, 50) with intention now to display half of the graph range. The X axis does show only to 50 but the graph still sweeping 100 data points instead of 50 point and back again.
This result the after graph sweep 50 points, then the graph animation will be idle a while as it is sweeping rest of 50 points and only then back again to x = 0 to restart (in wrap and overwrite setting)
So as a start , is there any sample code to do zoom out zoom in in X axis?