GithubHelp home page GithubHelp logo

Comments (6)

modxuser avatar modxuser commented on May 29, 2024

have moved over to: https://github.com/rendro/easy-pie-chart

their solution works how I need it to

from jquery-circle-progress.

kottenator avatar kottenator commented on May 29, 2024

I'm sorry, I had no chance to answer earlier. Have you solved your problem by yourself or do you need help?

from jquery-circle-progress.

kottenator avatar kottenator commented on May 29, 2024

Oh, I see. Well, it's your choice.

As for 100% - you were parsing percentage number in a wrong way. You shouldn't use n.toFixed(2).substr(1), it returns first 2 digits of the fraction part. You should use parseInt(100 * n) instead.

Here is the full example (and demo):

$('.circle').circleProgress({
    value: 1,
}).on('circle-animation-progress', function(event, progress, stepValue) {
    $(this).find('strong').text(parseInt(stepValue * 100));
});

from jquery-circle-progress.

modxuser avatar modxuser commented on May 29, 2024

@kottenator

I have moved to a different script as it does what I need out of the box.

I searched the net and with the help of some posts I found I tried modifying your script but I am not a tech when it comes to JS - didn't work out.

The only problem I had left over was showing "100%" in the front-end

This was very helpful - http://jsfiddle.net/edward_lee/1f58u1o5/2/

from jquery-circle-progress.

modxuser avatar modxuser commented on May 29, 2024

Just modified my code that I had - works perfectly with your changes - thanks.

I now have 2 solutions :)

from jquery-circle-progress.

kottenator avatar kottenator commented on May 29, 2024

You're welcome! I'm always glad to help

from jquery-circle-progress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.