This might be a stupid question. 😀 But I tried several things and nothing seems to work…
I have a chart that has several different datasets that can be switched to. When I apply them and do zoom to extents it changes the Y Axis sometimes 1-15, sometimes 1-20, sometimes 1-25. So the chart zooms in/out, which looks nice.
However I would like to fix the initial zoom to be always be 1-20. If the chart is smaller or bigger than 20; that is fine; I just want the initial viewport to always zoom to be 1-20, when I switch the dataset. They can then zoom in/out or pan using gestures.
Any ideas on what API I need to call to zoom the chart to 1-20. (Please note, this is using a logarithmic scale on the Y-Axis — if it makes any differences).
So what do I need to call/set rather than calling the zoom to extents function.
I’m not sure how you perform zoom extents in your application, but you just need to set VisibleRange and configure chart to not update it.
Hope this will help you!
Please login first to submit.