Pre loader

How to change the x-axis datetime intervals runtime.

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies