Hello,
I have an x-axis of type DateTime. Now I need to change that x-axis to show data in different intervals like Daily, Weekly, Monthly, continuous axis, and discontinuous axis at runtime.
Can you help me to guide on how can we achieve this. Also, any code reference would be really helpful.
Thanks,
Parthiv
- Parthiv Prajapati asked 3 years ago
- You must login to post comments
Hi Patriv,
Thanks for your inquiry.
You can control data interval shown through VisibleRange property on Axes:
https://www.scichart.com/documentation/win/current/webframe.html#Axis%20Ranging%20-%20AutoRange%20and%20VisibleRange.html
we have examples in our Examples App that set VisibleRange to scroll view in realtime:
https://www.scichart.com/example/wpf-chart-example-realtime-ticking-stock-charts/
and a Tutorial that shows a slightly different approach:
https://www.scichart.com/documentation/win/current/webframe.html#Tutorial%2006%20-%20Adding%20Realtime%20Updates.html
As to showing discontinuous axis, we have a DiscontinuousDateTimeAxis which you can use instead of DateTimeAxis or swap them dynamically:
https://www.scichart.com/documentation/win/current/webframe.html#Discontinuous%20DateTime%20Axis%20and%20Double-Scale%20Axis.html
Hope this helps! Please feel free to ask if you need any assistance.
With best regards,
Oleksandr
- Oleksandr Shvets answered 3 years ago
- You must login to post comments
Please login first to submit.