Bar Rating Widget

Loading...
Sorry, we can't retrieve the data from server. Please comeback later.

A bar rating widget allows you to display choices in a choice-based question as bars, stars, pills, and other symbols. For example, you can use the rating widget on a website to introduce a star review system for customer service or to collect product feedback from users. This demo shows how to add a bar, star, or pill rating question to your survey or poll.

Reference Sources

SurveyJS uses a third-party jQuery Bar Rating plugin as a bar rating widget. Reference the plugin's script and style sheet on your page. You should also reference a script that integrates the SurveyJS Form Library with third-party libraries (surveyjs-widgets.js). Open the HTML tab and copy the links from there.

Create a Bar Rating Question

To create a bar rating question, define an object with the type property set to "barrating" and add it to the elements array. Your bar rating also needs a rating scale. To specify it, assign an array of numbers to the choices property. Alternatively, you can generate scale values based upon the minimum, maximum, and step values. Set the choicesMin, choicesMax, and choicesStep properties as shown under the JavaScript tab.

Change Skins

Skins define symbols (bars, stars, pills) that designate rate values. Each skin is distributed as an individual style sheet that you should reference on your page. You can find style sheet links under the HTML tab. Set the ratingTheme property to apply a skin. In this demo, you can select different skins from the "Themes" drop-down menu and apply them at runtime.

Display Rate Values

You may wish to display rate values to identify a vote clearly. To do this, enable the showValues property. Click the "Show rate values" checkbox to show or hide rate values in this demo.

Use the Built-In Rating Question

If you do not need to display the rating widget in different skins, use the built-in Rating question type. It implements the same functionality but does not require any third-party libraries. Refer to the Rating demo for more information.

Settings

Theme:

Third-party libraries:

Why we use cookies.

This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies.

For more information, refer to DevSoft Baltic’ privacy policy and cookie policy.

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.