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

Allow Donut to handle PHP json_encode output #189

Closed
wants to merge 1 commit into from

Conversation

mpettitt
Copy link

Currently, Morris.Donut produces a chart with a load of tiny little bars on the bottom right of donut charts generated from data straight from PHP's json_encode function.

The other chart types don't do this, because they parse the values into Int/Float values.

This change adds "parseFloat" to the line of the Donut code which reads the x.value, which brings it into line with the other chart methods, and makes json_encode output work as expected

It also has a longer commit summary than the amount of code added...

Currently, Morris.Donut produces a chart with a load of tiny little bars on the bottom right of donut charts generated from data straight from PHP's json_encode function.

The other chart types don't do this, because they parse the values into Int/Float values.

This change adds "parseFloat" to the line of the Donut code which reads the x.value, which brings it into line with the other chart methods, and makes json_encode output work as expected

It also has a longer commit summary than the amount of code added...
@oesmith
Copy link
Contributor

oesmith commented Feb 24, 2013

I can't merge this because you've modified the compiled javascript rather than the original coffeescript.

However, I've ported the fix back to the coffeescript and it's on master now.

Thanks!

@oesmith oesmith closed this Feb 24, 2013
@mpettitt
Copy link
Author

Thanks!

@mpettitt mpettitt deleted the patch-1 branch February 25, 2013 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants