Skip to content

XYChart not filling horizontally - looks like it is padded #1640

Answered by williaster
shirkan asked this question in Q&A
Discussion options

You must be logged in to vote

hey @shirkan thanks for checking out visx. By default XYChart has 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 margin object with a shape { top: number, right: number; bottom: number; left: number} (separately it looks like our docs page for xychart is down 😭 )

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@bennettdams
Comment options

@williaster
Comment options

@bennettdams
Comment options

@alicenstar
Comment options

@rnintai
Comment options

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