owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.35k stars 227 forks source link

🎉 (stacked bar) add neg/pos color encoding / TAS-547 #3725

Open sophiamersmann opened 1 week ago

sophiamersmann commented 1 week ago

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

Summary

Screenshot

Example on staging: http://staging-site-stacked-bar-colors/admin/charts/7905/edit

Screenshot 2024-06-21 at 17 18 40
sophiamersmann commented 1 week ago

[!WARNING] This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sophiamersmann and the rest of your teammates on Graphite Graphite

notion-workspace[bot] commented 1 week ago

StackedBar: Support pos/neg color encoding

owidbot commented 1 week ago
Quick links (staging server): Site Admin Wizard

Login: ssh owid@staging-site-stacked-bar-colors

SVG tester: Number of differences (default views): 0 ✅ Number of differences (all views): 0 ✅

Edited: 2024-06-20 07:09:01 UTC Execution time: 1.22 seconds