owid / owid-grapher

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

✨ (stacked bar) align x-axis of facets / TAS-548 #3726

Open sophiamersmann opened 1 week ago

sophiamersmann commented 1 week ago

Aligns x-axes of faceted StackedBar charts, resolves #2160

Implemented as part of an effort to create a set of climate charts, see draft charts on this staging site

Summary

Screenshots

Before After
Screenshot 2024-06-21 at 17 30 05 Screenshot 2024-06-21 at 17 30 40

Link: http://staging-site-stacked-bar-dual-axis/grapher/natural-disasters-by-type?facet=entity&uniformYAxis=0&country=Wildfire~Glacial+lake+outburst+flood~Dry+mass+movement~Extreme+temperature

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: Align x-axis of facets

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

Login: ssh owid@staging-site-stacked-bar-dual-axis

SVG tester: Number of differences (default views): 94 ([4f87a6](https://github.com/owid/owid-grapher-svgs/commit/4f87a6bdb7276d0d5fd5b76c4e428c1a56fef121)) ❌ Number of differences (all views): 250 ([1a6e79](https://github.com/owid/owid-grapher-svgs/commit/1a6e79c5f57a18b04b099bf1e9b09231afbdf6ee)) ❌

Edited: 2024-06-24 08:02:47 UTC Execution time: 1.17 seconds