-
-
Notifications
You must be signed in to change notification settings - Fork 242
Closed
Labels
Description
Description
Clicking on items in some graph legends tends to select or deselect the data set represented by that item. However, this behaviour doesn't translate well to touch devices, where the graph state tends to get confused and register both hover and click events on every tap.
Expected behaviour
If a legend item is selected, then tapping it should deselect it. If a legend item is not selected, then tapping it should select it.
Steps to reproduce
Steps to reproduce the behavior:
- Go to https://ourworldindata.org/grapher/co2-emissions-vs-gdp on a touch screen device
- Tap Europe in the legend
- Tap North America in the legend. Both are now selected.
- Tap Europe again. Nothing changes.
- Tap Asia. Europe is now deselected.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
For smartphone, instead provide:
- iPhone SE
https://whatismybrowser.com/w/K77NM96