-
Notifications
You must be signed in to change notification settings - Fork 501
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
Can i update the size? #101
Comments
Envoyé de mon iPad
|
second this, is there a way to update the bar colour as well? |
Rewind<<<< dug through the issues and found this -
That worked for me! |
@ruudbwai you can pass a function as $('.chart').easyPieChart({
barColor: function(percent) {
if (percent > 50) {
return 'red';
} else {
return 'green';
}
}
}) |
@dajy currently there is no chance to update the size, but this feature is on our list |
now we have 2017... is this feature now implemented? |
@dilotec-2015 its 2017 and you still have not sent me a pull request. Open source means participation not demanding features. Comments like yours are the reason why people like me who dedicated some of their time to build free and open software struggle to support it. |
hey everyone - you just need to target the Canvas element via CSS in a media-query: @media screen and (max-width: 767px) { you will need to restyle the font-sizes etc. - but its actually pretty easy - just a little extra typing (thanks for providing :-)) |
The fix that I used was that I added the If you have this class name, you can simply do the following in your stylesheet:
But make sure you first remove the default widths/heights from the canvases:
Thanks for the package @rendro! |
Ran into this too. You can remove the canvases of your easy pie charts. Then destroy the data context. Then simply rebuild them. Works good for me. Here's an example:
|
Hello rendo,
I am trying to make this plugin responsive.
Is there a way that i can update the size ?
The text was updated successfully, but these errors were encountered: