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

StackedDiscreteBar: Negative values lead to incorrect bar placement #3464

Closed
sophiamersmann opened this issue Apr 9, 2024 · 0 comments · Fixed by #3553
Closed

StackedDiscreteBar: Negative values lead to incorrect bar placement #3464

sophiamersmann opened this issue Apr 9, 2024 · 0 comments · Fixed by #3553

Comments

@sophiamersmann
Copy link
Member

sophiamersmann commented Apr 9, 2024

Description

  • This chart looks broken because one of the indicators (Land use change) has negative values that stacked discrete bar charts don't support
  • This leads to incorrect bar placements

Expected behaviour

Steps to reproduce

  1. Go to https://ourworldindata.org/grapher/food-emissions-supply-chain?country=Apples~Bananas
  2. Note that bars overflow
  3. Hover over one of the bars
  4. Note that Land use change has a negative value

Screenshots

Screenshot 2024-04-09 at 09 54 36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants