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 for your inquiry.
You can control data interval shown through VisibleRange property on Axes:
we have examples in our Examples App that set VisibleRange to scroll view in realtime:
and a Tutorial that shows a slightly different approach:
As to showing discontinuous axis, we have a DiscontinuousDateTimeAxis which you can use instead of DateTimeAxis or swap them dynamically:
Hope this helps! Please feel free to ask if you need any assistance.
With best regards,
Please login first to submit.