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 Stackoverflow.com 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.

Answered
0
0

I have uploaded little test project with data and small video (1.8 Mb) showing the problem here https://www.dropbox.com/s/cgevtl6gee74926/ZoomOutScroll.zip?dl=0

1) Bug report.
In new versions (3.23) MouseWheelZoomModifier won’t zoom out if first bar of DataSeries is already visible (no more data on the left of the chart). But in old versions (2.11) it works. Please see my video. I can’t tell in exactly what version this behavior has been changed. I remember I reported this bug 1 or 1.5 years ago, and it was fixed. But now I notice this again.
Please fix or describe how can I fix it for my charts (3.23).

2) Question.
Please see second half of the video (after 0:17).
On top there is SciChartSurface, on bottom there is SciStockChart.
ZoomPanModifier (scrolling the chart with pressed left mouse button) works differently: SciStockChart scrolls good, but SciChartSurface does zooming in instead of simple scrolling.
My question is how to set up SciChartSurface to make her ZoomPanModifier act as on SciStockChart. I used to work with SciChartSurface and don’t want to move to SciStockChart because I like to have more settings.

  • You must to post comments
Great Answer
1
0

v2.1.1 – v3.2.3 is a big jump and a lot has changed! I have some suggestions for you below

1: ZoomPanModifier

you might want to check out the ClipModeX property, which causes the modifier to stop, or scale (stretch) or continue panning when extents of the data are met.

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

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.

2: MouseWheelZoomModifier

You can probably create custom behaviour very easily by following this tutorial:

Different zooming on axes?

Best regards,
Andrew

  • RTrade A
    Thanks. Btw, regarding 2: MouseWheelZoomModifier problem. Yura from support advised following and it helped:<s:CategoryDateTimeAxis.VisibleRangeLimit> </s:CategoryDateTimeAxis.VisibleRangeLimit>
  • You must to post comments
Good Answer
0
0

Thanks.
Btw, regarding 2: MouseWheelZoomModifier problem.
Yura from support advised following and it helped:

               <s:CategoryDateTimeAxis VisibleRangeLimitMode="Min">
                   <s:CategoryDateTimeAxis.VisibleRangeLimit>
                       <s:IndexRange Min="0" />
                   </s:CategoryDateTimeAxis.VisibleRangeLimit>
               </s:CategoryDateTimeAxis>
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.