How to show a decimal rating

0
Hi, I am using star rating widget but I want to show a decimal rating like 3.5, … after aggerating all the ratings provided by the customer I am getting a decimal value so based upon that value I need to show the rating with star symbol. I am getting like below    I need to show some thing like below  
asked
2 answers
0

Are you using a decimal attribute for rating? If not then use a decimal attribute.

answered
0

Nope, will not do this. There are several ways to create this using javascript, like this example: https://webdesign.tutsplus.com/tutorials/a-simple-javascript-technique-for-filling-star-ratings—cms-29450, but way better is this react/mui: https://webdesign.tutsplus.com/tutorials/a-simple-javascript-technique-for-filling-star-ratings--cms-29450 Here is your chance to create a nice widget that outperforms Mendix’ version :-)

 

answered