Pre loader

How to disable xAxis re-scaling when panning a chart beyond the available data range?

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

Answered
1
0

I wonder how I can disable the x-Axis from automatically re-scaling when panning a series beyond the available data range? The only time when axes scales change should be when I modify the axes scales via mouse on the respective axis itself. But when I pan a series I do not want any changes in axes scale to occur. How can I accomplish that? Thanks

  • You must to post comments
Best Answer
1
0

I believe you’re looking for the ZoomPanModifier.ClipModeX property.

ZoomPanModifier.ClipModeX

Defines how panning behaves when you reach the edge of the X-Axis extents. e.g. ClipMode.ClipAtExtents prevents panning outside of the X-Axis, ClipMode.None allows panning outside

  • ClipMode.ClipAtExtents forces the panning operation to stop suddenly at the extents of the data
  • ClipMode.ClipAtMax forces the panning operation to stop suddenly at the maximum of the data, but expand at the minimum
  • ClipMode.ClipAtMin forces the panning operation to stop suddenly at the minimum of the data, but expand at the maximum
  • ClipMode.None means you can pan right off the edge of the data into uncharted space.
  • ClipMode.StretchAtExtents causes a zooming (stretch) action when you reach the edge of the data.

Best regards,
Andrew

  • 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