create a barRating htmlwidget
1 2 3 4 5 |
choices |
Vector of values to select from. |
theme |
Name of a theme. |
initialRating |
Specify initial rating by passing select field's option value. |
showValues |
If set to true, rating values will be displayed on the bars. |
showSelectedRating |
If set to true, user selected rating will be displayed next to the widget. |
deselectable |
If set to true, user can deselect a rating. For this feature to work the select field must contain a first option with an empty value. |
reverse |
If set to true, the ratings will be reversed. |
readonly |
If set to true, the ratings will be read-only. |
fastClicks |
Remove 300ms click delay on touch devices. |
hoverState |
Change state on hover. |
silent |
Supress callbacks when controlling ratings programatically. |
selected |
Specify initial rating. |
includeEmpty |
Include an empty rating. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.