Accessibility Compliance
SurveyJS libraries meet a variety of WCAG and Section 508 standards. Run AXE® Validation to assess this demo’s accessibility level.

Configure Slider Scale Labels

Edit in →
Survey Creator

Labels divide the slider scale into visual reference points and give users a clear idea of the available range. Users can click a label to select the corresponding value. Both the SurveyJS Single-Value Slider and Range Slider inputs support auto-generated and custom scale labels. This demo shows how to configure either type, format the labels, or hide them entirely.

Auto-Generated Scale Labels

To generate labels automatically, specify their number using the labelCount property. By default, six labels are displayed. In this demo, the number is increased to 11. Each label is positioned at the value it represents.

Custom Scale Labels

If the auto-generated labels don't meet your needs, you can define custom ones using the customLabels array. Each item in this array should be a number—the scale value where the label should appear—or an object with the following fields:

  • value: number
    The scale value where the label should appear.

  • text: string
    The label text to display.

When defined, custom labels override auto-generated ones. This example demonstrates how to use customLabels to display descriptive text instead of numeric values.

Label Formatting

To apply a specific format to scale labels, use the labelFormat property. Include the {0} placeholder in your format string to insert the label value—for example, to prefix labels with a dollar sign. You can use the same formatting approach for thumb tooltips using the tooltipFormat property.

If you are using custom labels, labelFormat affects only those that do not define the text property.

If you want to hide all scale labels, set the showLabels property to false.

Your cookie settings

We use cookies on our site to make your browsing experience more convenient and personal. In some cases, they are essential to making the site work properly. By clicking "Accept All", you consent to the use of all cookies in accordance with our Terms of Use & Privacy Statement. However, you may visit "Cookie settings" to provide a controlled consent.

Your renewal subscription expires soon.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.

Your renewal subscription has expired.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.