Open sophiamersmann opened 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
Quick links (staging server): Site | Admin | Wizard |
---|
Login: ssh owid@staging-site-no-data-axes
Edited: 2024-06-26 11:55:01 UTC Execution time: 1.24 seconds
Didn't have time for a proper review yet, but one thing comes to mind about this one:
The "No matching data" text is only shown when rendered to HTML; it is never part of a SVG / png. This meant that before this PR, we were only rendering a white block in place of the charting area (which wasn't great). Now, we're rendering a full, but empty, axis, which might be even more misleading.
Ah, good point. I removed the buttons in this PR, so we could just turn the foreignObject into SVG.
Show axes for charts without data, fixes https://github.com/owid/owid-grapher/issues/2127
Implemented as part of an effort to create a set of climate charts, see draft charts on this staging site
Summary
NoDataModal
when I worked on the entity selector redesign – the 'edit entities' button don't currently show up (luckily almost, since the button would be broken if the entity selector is plotted into the side panel) – after checking in with Marwa, we decided to remove the buttons alltogether; instead, we show a help messagecanChangeEntity
andcanAddEntities
are undefined), but I don't want to rely on that, and I also don't want to start passing anisFacet
down to our charts – I think it's ok like thisTo do
Screenshots
👆🏻 Line chart / Bar chart
More screenshots
Having a single zero line looks a bit dumb:
The outer axis labels are cut:
Well...