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

Unable to invert bars in BarChartFace #688

Open
Tassadaar opened this issue May 26, 2023 · 0 comments
Open

Unable to invert bars in BarChartFace #688

Tassadaar opened this issue May 26, 2023 · 0 comments

Comments

@Tassadaar
Copy link

Tassadaar commented May 26, 2023

Hello! I am trying to make a bar chart with positive and negative values, where the negative ones are shown as inverted bars (below the x-axis). Is BarChartFace the right choice for my purpose, or should I consider alternatives? Thanks!

I currently have this but x-axis seems to be one and the same with the min value:

values = [0.1, -0.1, 0.2, -0.2, 0.3, -0.3]
labels = ["A", "C", "D", "E", "F", "G"]

face = BarChartFace(
                  values=values,
                  labels=labels,
                  colors=["blue", "blue", "blue", "blue", "blue", "blue"],
                  min_value=-0.5,
                  max_value=0.5
         )
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

1 participant