How to set slider size in a Tee.Scroller

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
dynamicrisk
Newbie
Newbie
Posts: 28
Joined: Thu Apr 06, 2023 12:00 am

How to set slider size in a Tee.Scroller

Post by dynamicrisk » Mon Jan 27, 2025 9:33 pm

Hello,

I have added a scroller to a chart but the slider width is longer than the scroller. I have tried setting the slider.bounds.width property but it doesnt change the length of the slider when it renders.

Thanks

Marc
Site Admin
Site Admin
Posts: 1285
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: How to set slider size in a Tee.Scroller

Post by Marc » Tue Jan 28, 2025 8:19 am

Hello,

The size of the band at startup relates to the Chart's Bottom Axis minimum and maximum values.

Setting the bottom axis' range sets the scroller slider size.

eg.

Code: Select all

Chart1.axes.bottom.setMinMax(DesiredSiderStartValue, DesiredSiderEndValue);
Please use this page for reference, the code is included in the page:
https://www.steema.com/files/public/tee ... roller.htm

Regards,
Marc Meumann
Steema Support

Post Reply