Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting animation click #85

Open
Messa1 opened this issue Mar 19, 2014 · 2 comments
Open

Starting animation click #85

Messa1 opened this issue Mar 19, 2014 · 2 comments
Labels

Comments

@Messa1
Copy link

Messa1 commented Mar 19, 2014

Is it possible to start the animation with a click event?
For example if i click on a div with the class="startbutton"
Like in this example:

$( ".startbutton" ).click(function() {
   $('.chart').data('easyPieChart').startAnimation();
});

Is it possible to set something like "startAnimation();"

@Messa1
Copy link
Author

Messa1 commented Mar 19, 2014

Oky i use this for getting started at click. But a restart would be nice. 👍

$(".startbutton").click(function() {
        $('.chart').easyPieChart({
    //Here comes the Options
        });
    });

@rendro
Copy link
Owner

rendro commented Mar 19, 2014

You can set the initial percent value to 0 or leave it blank. Then you can trigger the animation with the update method. Pass the value to it to which you want the chart to be updated.

@mrzmyr mrzmyr added the question label May 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants