I have a csv file that looks like.
section1, stable section2, draft section4, unknown section5, testing section6, stable set,stable
I would like to create a pie chart from it without hardcoding how many times for example, the value stable occurs.
I’m looking for a function or maybe a way to iterate through csv file and return a map of
[ uniqueValue tally] of type
Using the above csv file as an example, I would be looking to return
["stable" 3 "draft" 1 "unknown" 1 "testing" 1]
I would also settle for a slice too, i.e
[3,1,1,1]. Looking for ideas. Thank you.