-
Notifications
You must be signed in to change notification settings - Fork 715
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
Arc example #886
Comments
Love it! We could add something like the I can probably work on this in the next week or so, but in the mean time added the |
@oscar-broman @hshoff I think
const arc1 = d3.arc();
arc1({ innerRadius, ... }); // "M0,-100A100,100,0,0,1,100,0L0,0Z"
const arc2 = d3.arc().innerRadius(...)...;
arc2(); // "M0,-100A100,100,0,0,1,100,0L0,0Z" |
@thecodeah I know this is an old issue, but I thought maybe this will help someone who struggles with the arc component I have built a color wheel using the Arc component here |
Thanks for the colour wheel example, been struggling to get anything but whole rings rendering from the I took to reading the source as well, to see why nothing rendered at first, then I satisfied the conditional by supplying a Update: After tinkering with ChamsBouzaiene's code, my mistake was to assume start and end angles were in degrees, when it appears they should be in radians? Arcs no longer drawing complete circles 👍 |
I've been using visx for some time now but I've never actually been able to render an Arc. I'm not sure whether it's a bug or if I'm doing something wrong.
The Arc can be quite difficult to understand. It has tons of radius and angle attributes. Even when passing in random arguments like this:
I can't get anything to show up. (Not even anything in Inspect Element which is why I have the feeling that it might just be a bug)
It'd be nice to have a simple example, which I could copy paste and then modify to understand what each attribute does.
The text was updated successfully, but these errors were encountered: