Skip to content
Discussion options

You must be logged in to vote

Hey @GoldenIvan 👋 thanks for checking out visx. Would it be possible to put this in a codesandbox for easier tinkering? It's challenging to fully debug without that. For instance is the container overflow the grey container or the green container?

Some initial thoughts though:

  • in SVG, Group (rendered as a <g />) doesn't have inherit dimensions, it depends on its child contents
  • overall I think this has to do with the fact that you are using width / 2 for pie radius. Given that the shape is a circle and your angles are going from -PI, PI, that means the height would also be width / 2 (since you are rendering half a circle). Instead of using width / 2 for your height values, you are using h…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maximerivolet
Comment options

Answer selected by maximerivolet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants