SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
hi all, I’m using SciChart with MVVM light.
I am working on a stock chart OHLC and data are coming in from Mintpal.
Mintpal has an API where you can request a specific date range: 6 hours, 24 hours, 1 week, etc.
Running the application requests for 6 hours OHLC data, and on the application, I can select 24 hours, 3 days, 1 week
my problem is, how do you automatically adjust the zoom level without double clicking the cart?
Autorange is set by the way on YAxisStyle
To know about my problem, here’s a sample video using the test app I made.
You can try with for example this line of code:
YAxis.VisibleRange = RangeFactory.NewWithMinMax(this.YAxis.VisibleRange, yaxisminimRange, yaxismaximumRange);
You can also look at the examples with ViewportManager. However i think the line above is what you need. Of course this is for the Y axis but you can do the same for the X Axis. Just make sure to use the correct format.
Here is a good example with the ViewportManager: Zoom Including Annotations
Please login first to submit.