This sounds quite stupid.
I usually got data from json like
{ "name":"john","category":"A"}
{ "name":"paul","category":"B"}
{ "name":"henry","category":"A"}
{"name:"jane","category":"C"}
I easily manage to get the percentage of category A and percentage of category B in a pie chart with an index made of two fields : name and category.
My problem is that I now have a json that comes with the percentage being already processed. something like :
{"categoryA":50}
{"categoryB":25}
{"categoryC":25}
My index is therefore made of 3 fields : categoryA, category B, categoryC
How do I make a pie chart that will take into account the categories value?
I should be so simple and I don't see how.
Thanks for your help