XYChart not filling horizontally - looks like it is padded #1640
-
Beta Was this translation helpful? Give feedback.
Answered by
williaster
Jan 26, 2023
Replies: 1 comment 6 replies
-
|
hey @shirkan thanks for checking out You can control it by passing a custom |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
shirkan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



hey @shirkan thanks for checking out
visx. By defaultXYCharthas padding around it to make room for different placement of axes. (by default svg overflow is clipped, hence why this is added).You can control it by passing a custom
marginobject with a shape{ top: number, right: number; bottom: number; left: number}(separately it looks like our docs page forxychartis down 😭 )