williaster / data-ui

A collection of data-rich UI components 📈
https://williaster.github.io/data-ui/
MIT License
551 stars 69 forks source link

Is it possible to have a horizontal stacked bar chart? #176

Open okanji opened 5 years ago

okanji commented 5 years ago

I have been trying to make a horizontal stacked bar graph.

xScale in stacked bar series only accepts type 'band'. I assume that it would need to be type 'linear' for a horizontal stacked bar graph.

Is it possible to make a horizontal stacked bar graph?

Thanks

williaster commented 5 years ago

Sorry @okanji this is currently not possible. It should be relatively easy to implement with the @vx BarStackHorizontal component if you want to take a shot at the PR

https://vx-demo.now.sh/barstackhorizontal

okanji commented 5 years ago

Sounds good, I'll look into that on the weekend, thanks.