Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacked Bar Charts #25

Open
chshersh opened this issue Jul 29, 2022 · 1 comment
Open

Stacked Bar Charts #25

chshersh opened this issue Jul 29, 2022 · 1 comment

Comments

@chshersh
Copy link

Really cool project and I really like the Examples module! 👏🏻

I was searching for different visualization methods and found out about this package. I would like to draw Horizontal Stacked Bar Charts but I see that the library currently doesn't support them.

I think it would be a cool feature to add 🙂

Visualiation example can be found here:

image

@tonyday567
Copy link
Owner

Thanks! Accidentally pushed half the PR to main, but the latest commit, which will be 0.3.1, adds Stacked to the bar options (and fixed a bug in that I was using Vert/Hori opposite to their meaning. The example is:

writeChartSvg "other/sbar.svg" $ barChart (defaultBarOptions & set #barOrientation Hori & set #barStacked Stacked & #displayValues .~ False & #barRectStyles %~ (fmap (#borderSize .~ 0))) barDataExample

https://github.com/tonyday567/chart-svg/blob/main/other/sbar.svg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants