This module is great! However, I am trying to add a simple pie chart, and I would like to use the data in a second series for identifying chart slices. For example, I would like to have one series of values and another series of labels. It doesn't seem like I can do this currently. Here is the csv information I am working with:
Label,Value
501(c)(3)-Charitable Orgs,15584
501(c)(4)-Social Welfare,1193
501(c)(6)-Business Leagues,949
Other Nonprofits,2299
For some reason, I can access the "Value" series with no problem, but I can't seem to get the other series to show up at all. When I try to add the Label series information as tooltip values or value labels, nothing shows up. I was able to determine that if I add {series.name} it will show the "Value" series name, but I can't figure out a way to show any of the data in the "Label" series. Is this not possible, or am I missing something?
Thanks for any help you can provide. :-)
Comments
Comment #2
thomas_rz CreditAttribution: thomas_rz as a volunteer and at Government of Flanders commentedHi Paramnida,
If the first column of your data contains categories (and thus is not a series), the first cell of that column should be empty (or contain the word "categories") in order for Easychart to parse the data correctly:
or:
I corrected the chart you made: http://easychart.org/node/165/edit
Is that how you want it?
Cheers!
Comment #3
paramnida CreditAttribution: paramnida as a volunteer commentedOh wow! Thank you for the quick and helpful reply! This helps a lot! Perhaps this information could be included in the documentation somewhere. At least, I don't recall seeing it. I wondered how to properly format my CSV file. Thanks for your help! :-)
Comment #4
thomas_rz CreditAttribution: thomas_rz as a volunteer and at Government of Flanders commentedYou're welcome.
I added this information here: https://github.com/bestuurszaken/easychart/blob/master/README.md#csv-dat....
Thanks for your feedback!