-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎉 (stacked bar) add neg/pos color encoding / TAS-547 (#3725)
Automatically colours positive and negative values differently (if a single series is plotted) Implemented as part of an effort to create a set of climate charts, see draft charts on [this staging site](http://staging-site-stacked-bar/admin/charts) ## Summary - Positive and negative values are coloured differently if a single series is currently plotted and that series actually has positive and negative values - If one faceted chart uses pos/neg colouring, then we switch them all over for consistency - The colours for positive and negative values are currently hard-coded, I don't want to add config for this; let's see how far we get with hard-coded values first ## Screenshot Example on staging: http://staging-site-stacked-bar-colors/admin/charts/7905/edit <img width="817" alt="Screenshot 2024-06-21 at 17 18 40" src="https://github.com/owid/owid-grapher/assets/12461810/cc9c0954-c794-4d8a-9603-27bcdb95d815">
- Loading branch information
1 parent
94f8c52
commit 6cafe62
Showing
7 changed files
with
68 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters