raty icon indicating copy to clipboard operation
raty copied to clipboard

Turn a decimal number into star rating

Open kashifnaseer opened this issue 10 years ago • 2 comments

I'm trying to adapt a way using Raty.js to turn a decimal number into stars. Like Decimal Number 2.20 should highlight the 2.20 stars out of 5 stars rating system. currentlty it highlights 2 stars. How i can more precisely highlight stars accoding to decimal values ? Any idea ?

currently with starHalf option it rounds the decimal numbers and show the half stars. I dont want to round and want to highlight the correct % of the stars according to decimal values......

kashifnaseer avatar Oct 22 '14 10:10 kashifnaseer

Raty does not support % highlight. Just half of full.

wbotelhos avatar Oct 26 '14 14:10 wbotelhos

I would really appriciate %highlighting. Perhpas you can give a shoort description what we should do? Surely we have to integrate more images into the font, i guess 1 image for each 0.1 step would be enough. The precision of the selection algorithm has to ba adapted as well as the rendering. Some advice?

gizzm0 avatar May 04 '15 12:05 gizzm0