owid / owid-grapher

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

🎉 (stacked bar) share x-axis across facets / TAS-549 #3733

Open sophiamersmann opened 1 week ago

sophiamersmann commented 1 week ago

Shares the x-axis across faceted StackedBar charts

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

Summary

Future work

Known bugs

Suffers from this bug where axes are missing if one of the bottom facets doesn't have any data (fixed in the next PR)

Screenshot

Screenshot 2024-06-21 at 13 50 01

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

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

Login: ssh owid@staging-site-stacked-bar-shared-x-axis

SVG tester: Number of differences (default views): 94 ([6f6c72](https://github.com/owid/owid-grapher-svgs/commit/6f6c7250a9790a96df00cfe90839387981665696)) ❌ Number of differences (all views): 250 ([baca2f](https://github.com/owid/owid-grapher-svgs/commit/baca2ffadfc65c2949eef8b33d78b7c55362af59)) ❌

Edited: 2024-06-26 11:48:54 UTC Execution time: 1.16 seconds

notion-workspace[bot] commented 1 week ago

StackedBar: Share x-axis across facets