SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0
1

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

Version
6.1.1.13136
  • You must to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.