Pre loader

SciScrollbar selected range recalculation

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

Hello,
I have a question about SciScrollbar. In application I’m working with long length record and I want to manipulate with its visible range via scrollbar. There is a problem with small ranges, for example I have a record which is over 8 hours long and i want to set 5 minutes. Unfortunately the length of slider for 5 minutes is smaller than specified zoomlimit property value. If i explicitly set 5 minutes, it’s ok. But when I perform move by clicking on scrollbar area the length of slider is recalculated based on zoomlimit property and selected range is changed. Is there any way to avoid this recalculation? See attached pictures for better clarification.

Images
  • You must to post comments
0
0

Hi Jan,

It’s really difficult to do this. Consider your record of 8 hours (480 minutes) is on a chart 400 pixels wide. 1 pixel is therefore just over 1 minute. 5 pixels = 5 minutes.

Your scrollbar grips need to be 5 pixels wide to allow scrolling at this range, and its pretty difficult to grab them and drag them at this size.

We do allow you to set the minimum zoom on a scrollbar with the SciChartScrollbar.ZoomLimit property. If you set that to 2 then you can drag the grips 2 pixels apart.

Next, you can style the Scrollbar Grips to be really thin, so that you can actually grab them at this distance.

I know its a workaround, but maybe this helps?

  • 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