Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

2 participants