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

Pie-Charts not working when data is passed as strings #534

Closed
dnschnur opened this issue Sep 28, 2012 · 0 comments
Closed

Pie-Charts not working when data is passed as strings #534

dnschnur opened this issue Sep 28, 2012 · 0 comments

Comments

@dnschnur
Copy link
Member

Original author: c...@laerdal.no (January 24, 2011 10:19:09)

IMO it would be an enhancement if Pie charts would also work when the data values are passed as strings.
e.g.
[{"data":"46153","label":"Series1"},{"data":"12841","label":"Series2"}]

Flot itself can deal with numbers just fine, if they are quoted so I think this would be consitent and makes it easier for integration with libraries such as the Google Analytics Data API (where the values come as strings).

I added a fix for this by altering the fixData function.
It now also checks for the string data type.

Original issue: http://code.google.com/p/flot/issues/detail?id=455

@ghost ghost assigned dnschnur Feb 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant