mWater / mwater-visualization

GNU Lesser General Public License v3.0
3 stars 5 forks source link

Option for bar charts to only show entries with data #466

Closed Autio closed 2 years ago

Autio commented 2 years ago

A suggestion from Tim Davis:

Can there be an option in bar charts where you toggle the option to hide entries in a bar chart where no data is coming through? Similar to what we've relatively recently implemented in pivot tables (Only show values actually present).

image

The use case is his MIS where he has a stacked bar chart for all of the districts in PNG but only a handful have data at the moment, so he's manually unticking most of them. But data will gradually come for more and more of them, so it would be best not to have to manually manage this.

Hoping this is somehow easier to implement now that the equivalent thing has been done for pivot tables.

Example: image https://portal.mwater.co/#/consoles/23e566cb28cb46458745fcda0b4bd9a4?tab=e56ffccc-9bb5-42e0-bfad-819ceb29f97e

broncha commented 2 years ago

Deployed

Screen Shot 2022-07-05 at 16 42 54