[xy-chart] Horizontal bar #1050
-
Hi, I am trying to use the XYchart to do an horizontal barchart, like this one : Do you have a working example of that ? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @GoldenIvan 👋 looks like you found the In general Hope that helps. |
Beta Was this translation helpful? Give feedback.
-
I was able to do that for my project. Thank you for your time ! |
Beta Was this translation helpful? Give feedback.
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 passhorizontal={true}
as described in the docs. Here all we are doing to toggle vertical / horizontal isxScale
vsyScale
Hope that helps.