Skip to content

[xy-chart] Horizontal bar #1050

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

You must be logged in to vote

Hey @GoldenIvan 👋 looks like you found the xychart demo on the demo site here. You can view the source code for any example below its rendering, and also follow the codesandbox link displayed on the example page to tinker live.

In general XYChart will try to infer whether you are rendering items horizontally based on your x/y scale types but you can also pass horizontal={true} as described in the docs. Here all we are doing to toggle vertical / horizontal is

Hope that helps.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@williaster
Comment options

@maximerivolet
Comment options

@williaster
Comment options

@williaster
Comment options

Answer selected by maximerivolet
Comment options

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

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