We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tick values not visible on small scale

Thread ID:

Created:

Updated:

Platform:

Replies:

132968 Oct 1,2017 07:15 PM UTC Oct 2,2017 10:52 AM UTC JavaScript 2
loading
Tags: ejSlider
Marco Giorgi
Asked On October 1, 2017 07:15 PM UTC

I've included a slider in my js project but I'm not able to show the tick values over the scale.

here is how I've defined:

            $("#default").ejSlider({
                value: 1,
                showScale:true,
              maxValue:7,
              minValue:1,
              showSmallTicks:true
            });

I need to show all the tick values from 1 to 7 over the scale.

I hope there's a way!


Marco Giorgi
Replied On October 1, 2017 07:20 PM UTC

I've included a slider in my js project but I'm not able to show the tick values over the scale.

here is how I've defined:

            $("#default").ejSlider({
                value: 1,
                showScale:true,
              maxValue:7,
              minValue:1,
              showSmallTicks:true
            });

I need to show all the tick values from 1 to 7 over the scale.

I hope there's a way!


solved by setting largeStep:1:

            $("#default").ejSlider({

                value: 1,

                showScale:true,

              maxValue:7,

              minValue:1,

              showSmallTicks:true,

              largeStep:1

            });



Ashokkumar Balasubramanian [Syncfusion]
Replied On October 2, 2017 10:52 AM UTC

Hi Marco, 
 
In our Slider component, Default we have specified the largeStep value as 10. For your provided code block, you have used the maxValue as 7, It’s lesser than largeStep value, so we are unable to calculate distance between two major ticks from the scale of Slider. So only in our Slider component ticks are not rendered properly. For this scenario, we have suggested to specify the largeStep value. 
 
Please let us know, if you have any concern on this. 
 
Regards, 
Ashokkumar B.    


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;