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


Dear SciChart Team:

I want to extend the chart to fit the size to match DataRange and have two operational scenarios:
1. Call SciChartSurface.ZoomExtents()
2. Double click on the canvas with ZoomExtentsModifier

When I change the Y-axis(X-axis) scale through the YAxisDragModifier(XAxisDragModifier) and append points to the curve, and then execute ZoomExtents(), the chart does not match the DataRange.

How do I zoom extents the chart to match DataRange?

  • You must to post comments

Hi Johnny,

Thanks for your inquiry.
Please take a look at our “Drag Axis to Scale” example. Both AxisDragModifier and ZoomExtentsModifier are used here:

If you continue experiencing this issue please provide us with a small sample project reproducing this issue for investigation.

Thanks in advance.

  • Johnny Yeh
    Dear Oleksandr: I set all the “AutoRange” of the X and Y axes to “Always”. So, after adding the points to the curve, the “VisibleRange” of all axes will be automatically modulated, assuming that the range is 0~100. If I set the “VisibleRange” of the axis to 0~10 at this time, but after adding points, “VisibleRange” is changed to 0~100 because of the relationship of “AutoRange”. I would like to ask, in the case of “AutoRange”, how do I control “VisibleRange”? I hope the situation is that “VisibleRange” can be equal to “DataRange”, but if the axis is adjusted with “AxisDragModifier”, “VisibleRange” will be automatically adjusted to the size of the previous drag after adding points. How do I control “VisibleRange” in the case of “AutoRange”?
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.