Comments (9)
Hi @Nageshwar , not sure I follow. Isn't that what its happening right now?
for ex. if I hover from 2.0 to 2.5 then 2.5 stars will be filled.
please elaborate, thank you
from star-rating-svg.
Hello @nashio ,
I would like to Show the intial rating of star when the value will be 4.7 then the star will be 5 prefilled as please check screenshot.
but what actually happening is for 4.7 star the image is showing 4.5 stars not 5.
Did you understand now, what i mean?
from star-rating-svg.
I see, on initial load then. Yeah right now its rounding down, you need up.
hm, I'm thinking maybe of adding an option to round both ways, could be useful.
from star-rating-svg.
Yes but half rounding will be great (Y)
For example 4.1 should be 4.5 not 5.
Thanks @nashio
from star-rating-svg.
yeah thats what I meant actually, 4.1 -> 4.5, instead of 4.0
from star-rating-svg.
Yes
That will be great (y)
Thanks in Advance
from star-rating-svg.
@Nageshwar
download the newest version and use the option, forceRoundUp: true
.
check the readme for reference: https://github.com/nashio/star-rating-svg/blob/master/README.md
let me know if that works for you
from star-rating-svg.
Great (y)
Thanks , I will surely let you know.
from star-rating-svg.
Yes it worked perfectly
for my testcases:
rating 4.7 it shows 5,
rating 4.001 it shows 4.5
rating 4.00 it shows 4.
Great work @nashio
from star-rating-svg.
Related Issues (20)
- Dynamic initial vlue HOT 3
- Stars appear black on iOS HOT 2
- content loaded through ajax HOT 1
- Now it does not working with Chrome 73.0.3683.103 HOT 1
- Stars not displayed HOT 2
- Custom polygon HOT 1
- Stars don't change size + are displayed vertically HOT 2
- If you vote a high value and then vote a low value, the stars do not change to low value HOT 5
- Found and fixed issue when using setRating option HOT 1
- Decrease rank not visible but rank changed HOT 1
- disableAfterRate cannot enter a lower rating HOT 5
- setRating HOT 1
- Can't change the ratedColor HOT 7
- How can I save the currentRating in rails
- disableAfterRate: false => allows me to edit only to raise stars up not to get it down HOT 4
- Re-update html doom element HOT 1
- SVGs generates zyllion validation errors
- Unexpected behavior in "disableAfterRate: false" HOT 2
- starRating 0/zero, not working
- Unset method doesn't work properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from star-rating-svg.