easy-pie-chart
easy-pie-chart copied to clipboard
Request: add option for the circle graph to be partially open
I want to replicate something like this. Any suggestions on how to do the math for drawing the circle?
Thanks!
This plugin does not cover this option yet. If there is a high demand we can add this feature.
The math should be straight forward: A normal circle has 360deg (2π rad). An open circle (lets say 25% open) can be drawn with the arc function of the canvas:
cx.beginPath();
cx.arc(100, 75, 50, 0, (2 * Math.PI) * 3 / 4);
cx.stroke();
Find more information here: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes#Arcs
I came across this repo/issue looking for a partial circle solution. +1
I came across this repo searching for a semi circle type chart, and found this issue thread. +1
@rendro if you get the chance, I think a bunch of us would like a plug and play solution to make this happen :)
+1