-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Summary
Version 1 of the app documented chart-level settings requirements in this file (e.g. outlier-explorer required id_col, measure_col and value_col). This allowed us to enable or disable a chart based on whether all of the required mappings were present. We should consider whether reimplementing this functionality is worthwhile in v2 (or as a later release). Currently, v2 just tries to draw the chart no matter what. If needed settings are missing, the user generally just sees a blank screen for the chart.
Details
I'm thinking we'd capture the chart requirements by expanding the domain section in the YAML. For example, the YAML for outlier explorer would look like:
env: safetyGraphics
label: Outlier Explorer - widget
type: htmlwidget
domain:
- labs
- id_col
- measure_col
- value_col
- ...
package: safetyCharts
export: true
...
Then we'd need to add some basic validation to the charting modules. Basically we'd check to see whether all of the required settings are present before deciding to render the chart. We could also show ✅ or ❌ in the charts dropdown to indicate whether the chart is available (like we did in v1).
I definitely think this would be nice to have, but am on the fence about whether it's needed for v2.0. Curious about what others think - @xni7 @elimillera @samussiah @JimBuchanan @mli1 (and everyone) any thoughts?