CodingTrain / Suggestion-Box

A repo to track ideas for topics
571 stars 86 forks source link

[Challenge] Pie Chart #568

Open ghost opened 7 years ago

ghost commented 7 years ago

It might be a fun idea to create a pie chart in P5.js from (random) data. I think it would be interesting to see how you would draw it.

behreajj commented 7 years ago

Hi StanNL, There's an example pie chart on the p5js website if you're interested. I made a more object-oriented example on CodePen, and the D3 JavaScript library is designed for data visualization. A lot depends on what data you have in mind and how it's formatted!

ghost commented 7 years ago

Thanks! I know that there are many libraries to do it, but I was wondering how someone would code it on their own. The p5js website was a great example and I didn't know it could be that easy