nashio / star-rating-svg

A star rating jQuery plugin that uses SVG for easier customization
http://nashio.github.io/star-rating-svg/demo
MIT License
353 stars 156 forks source link

Unfortunately Half stars not working #39

Open engharb opened 6 years ago

engharb commented 6 years ago

Hi,

I am using star-rating.svg but it works by default for fullStar and I tried to set that to half but does not work!

any idea?

thanks

nashio commented 5 years ago

Sorry for the late response, did you figure it out? try removing the setting useFullStars. otherwise please show me your code and we'll figure it out

minanabila commented 4 years ago

I have the same problem can you help me, please

my code

$(".rating").each(function () {

    $(this).starRating({
        totalStars: 5,
        initialRating: 0.5,
        starSize: 30,
        strokeWidth: 30,
        emptyColor: 'transparent',
        hoverColor: 'darkorange',
        ratedColor: 'darkorange',
        activeColor: 'darkorange',
        strokeColor: 'darkorange',
        starShape: 'straight',
        useFullStars: false,
        useGradient: false,
        disableAfterRate: false,
        callback: function (currentRating, $el) {
            // make a server call here
        }
    });
});