We're creating a widget that lets the user configure, among other things, two main elements for a widget:
- Choose 1 or more 'metrics' (either a numerical value or a string/message for a timestamp )
- Choose a display type: line graph, bar graph, grid, or list
The line graph, bar graph, and grid all support numerical metrics but not string metrics, and the list display type supports string metrics but not numerical metrics.
I'm trying to come up with a good flow for choosing metrics and a display type, but we want the user to choose the metrics before the display type. (If it were the other way around, it would be easy to first choose a display type and then populate the metric list accordingly).
Is there a way to achieve all of the following?
Make the user choose the desired metrics before the display type
Show all of the available metrics a user can choose upon entering the widget's configuration view (both numeric and string).
Don't make the user re-choose metrics if they choose a display type that doesn't support their chosen metrics