FixOurFood / FoF_streamlit_dashboard

Streamlit implementation of a Dashboard for the FixOurFood project
2 stars 1 forks source link

Added check for non existing dims in altair plots #29

Closed jucordero closed 7 months ago

jucordero commented 7 months ago

This PR fixes an issue when plotting time series for arrays with a single elemenent along the "Item" dimension, mentioned in #24

Added an additional condition to check if a dimension to sum over is present in the array. If not, the full array is used for the plot rather than a dissagregated version