DLR-SC / ESID

This is the repository to the ESID frontend for visualization of infectious disease propagation.
Apache License 2.0
15 stars 3 forks source link

0.0 values in scenarios #273

Open NXXR opened 1 year ago

NXXR commented 1 year ago

There is a discrepancy between the diplay of values in the scenario cards and the other views: e.g.: ICUV1 Intensive Care (💉) has values InfectedT Infected (🧪) (or Symptomatic (🧪)) does not.

When ICUV1 is selcted:

Screenshot of ESID with `ICUV1` selected ![grafik](https://github.com/DLR-SC/ESID/assets/25636783/df8b5f91-6f50-4381-a70f-c58091dff8a6)

The district map displays 'fine' (with a low heat legend value range) and the line chart too (some districs have a y-Axis range from [0..0.2] or similar)

When InfectedT is selected:

Screenshot of ESID with `InfectedT` selected ![grafik](https://github.com/DLR-SC/ESID/assets/25636783/e66cb7b1-2556-4712-8b91-67d935285245)

The district map renders the polygons in the same color as the background (tooltip and outline on hover still work) and the tooltip displays NaN for the value, the line hart displays correctly, not showing the series for which there is no value. Selecting scenario 2, for which there are values according to the line chart shows only a few districts with values:

Screenshot of scenario 2 selected ![grafik](https://github.com/DLR-SC/ESID/assets/25636783/78b49233-a71a-4582-9b95-579165f37f49) ![grafik](https://github.com/DLR-SC/ESID/assets/25636783/1e48cc60-3f19-40c6-8669-ad6280fc176d)

Additionally there is a time period where no values seem to be available.

Looking at the API response:

Excerpt from API resonse ```json5 { "results": [ { "name": "09663", "day": "2021-09-04", "compartments": { "InfectedT": 0.0 } }, // ... { "name": "14523", "day": "2021-09-04", "compartments": { "InfectedT": 0.0 } }, { "name": "09774", "day": "2021-09-04", "compartments": { "InfectedT": 0.00016026472089101626 } }, { "name": "05774", "day": "2021-09-04", "compartments": { "InfectedT": 0.0 } }, // ... { "name": "09662", "day": "2021-09-04", "compartments": { "InfectedT": 0.00010261157016716727 } }, { "name": "03158", "day": "2021-09-04", "compartments": { "InfectedT": 0.0 } }, // ... ] } ```

it seems the district map component and the line chart have a problem interpreting 0.0as a number and assume NaN.

This might be an extension for #164 and could be addressed in there as well.