Instead of disabling the "Chart" tab, hide or disable currently non-available chart types in the "Chart" sub-menu
As Emilie,
I want to not have the current temporary disabling of the "Chart" tab and instead hide or disable the (sometimes temporarily) non-available chart types,
So that I don't get confused by this temporary "Chart" tab unavailability.
Currently, the "Chart" tab is greyed out when loading structures and data the first time or when the user changes the filter selection:
In order to avoid that and have the "Chart" tab always active, implement the following approach instead:
- make the "Chart" tab always active/enabled
- for each newly displayed dataflow (opening of viz page), display the list of always available chart types in the dropdown (actually all chart types except timeline and colour map should always be available) and hide the currently non-available chart types until they eventually become available (Note: colour map stays hidden if missing map configuration or if missing GEO dimension, timeline stays hidden if missing TIME_PERIOD dimension)
- disable all chart types while figuring out if the current selection allows for these chart types, enable them once it is clear that the current selection allows for these chart types (Note: chart types are disabled if the current selection has too few available data points for this chart type)
- when the user changes the selection then repeat the previous point
- whenever the user clicks on the Chart tab, the chart dropdown list that opens is always up-to-date according to the current situation/selection
Example:
- The dataflow has no GEO dimension --> the colour map stays hidden
- The dataflow has a TIME_PERIOD dimension --> the timeline chart is displayed
- The dataflow has only one TIME_PERIOD value --> the timeline chart stays disabled
- The current selection doesn't allow for any value --> all displayed chart types are temporarily disabled (until the selection changes and returns values)
Edited by Jens Dossé