Picture of Sam Tsiu
How to set slider scale interval to 10 instead of 1?
by Sam Tsiu - Thursday, 5 November 2015, 10:27 AM
 

I have a scale question that I need to set the range from 10 to 100 with an interval of 10. The scale should read like 10, 20, 30, 100.

The default interval is 1 and makes the scale unreadable.

is there a way I can set this to 10?

Thanks for your help.

Sam

Picture of Sam Tsiu
Re: How to set slider scale interval to 10 instead of 1?
by Sam Tsiu - Thursday, 5 November 2015, 11:26 AM
 

I found a workaround by Oliver on the slider git repo, not perfect, but get the job done:-)

If you have the same problem, go check the link above for the workaround by Oliver.

Picture of Sandra Neubauer
Re: How to set slider scale interval to 10 instead of 1?
by Sandra Neubauer - Tuesday, 16 February 2016, 4:26 PM
 

I want to achieve the same thing - unfortunately the link to the workaround is not working anymore.

Can somebody help?

Thanks,

Sandra

Picture of Sam Tsiu
Re: How to set slider scale interval to 10 instead of 1?
by Sam Tsiu - Wednesday, 17 February 2016, 5:16 AM
 

Hi Sandra

I'm sorry that the link no longer works. 

Basically the idea is to set your labelStart to 10, and hide the number showing to achieve the 10 interval effect. see the code below

"_showNumber": false,
"_showScaleIndicator": false,
"_showScale": true,
"labelStart": "10",
"labelEnd": "100",
"_scaleStart": 1,
"_scaleEnd": 10,

 

Cheers

Sam

Picture of Sandra Neubauer
Re: How to set slider scale interval to 10 instead of 1?
by Sandra Neubauer - Wednesday, 17 February 2016, 3:32 PM
 

Thank you, Sam, this is working!