Pre loader

Zoom to specific time to tract live data

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
0

I have DateAxis as X Axis, so I want to trigger a button to zoom In/Out to a specific time at the latest plotted point (Price).
Example: I have zoom button 30 minutes, 15 minutes, 5 minutes and 2 minutes….

Version
5.0
  • You must to post comments
1
0

Hi Tang

This should be quite simple. All you need to do is set

DateTime dateMin;
DateTime dateMax;
DateTimeAxis.VisibleRange = new DateRange(dateMin, dateMax);

You need to calculate the dateMin and dateMax in your button click event handler.

Best regards,
Andrew

  • Tang Chanrith
    Hi Andrew, I am using Android and by using the code ” xAxis.setVisibleRange(new DateRange(dateMin, dateMax)); ” it cause an error: Expected instance of DoubleRange
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.