Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: add option for the circle graph to be partially open #110

Open
dja opened this issue Oct 30, 2014 · 5 comments
Open

Request: add option for the circle graph to be partially open #110

dja opened this issue Oct 30, 2014 · 5 comments
Assignees

Comments

@dja
Copy link

dja commented Oct 30, 2014

partially open chart

I want to replicate something like this. Any suggestions on how to do the math for drawing the circle?

Thanks!

@rendro
Copy link
Owner

rendro commented Oct 31, 2014

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

@jasonvarga
Copy link

I came across this repo/issue looking for a partial circle solution.
+1

@ghost
Copy link

ghost commented Jan 1, 2015

I came across this repo searching for a semi circle type chart, and found this issue thread.
+1

@dja
Copy link
Author

dja commented Feb 12, 2015

@rendro if you get the chance, I think a bunch of us would like a plug and play solution to make this happen :)

@peterkr
Copy link

peterkr commented Jan 5, 2016

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants