ivanceras / svgbob

Convert your ascii diagram scribbles into happy little SVG
http://ivanceras.github.io/svgbob-editor/
Apache License 2.0
3.91k stars 112 forks source link

[Question] How to go about dividing a circle into a pie chart #57

Closed dmayle closed 4 years ago

dmayle commented 4 years ago

Hi, I keep trying to draw a representative pie chart, but circles are very finicky, and every time I change them up a little, the circle breaks. Could you give pointers on how to create a circle that looks like a pie chart?

ivanceras commented 4 years ago

unfortunately, there is no convenient way to express a pie chart into an ascii diagram and vice versa. The algorithm for inferring circles is hardcoded for a set of characters that forms a circle, found in this code. Inferring arcs is also limited to the 4 perpendicular quadrants of the circle, so it's very limited to what it can do.