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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.


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….

  • You must to post comments

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,

  • 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.