I've managed to display charts also in case of some missing data, but currently null values are displayed as 0. Instead of that, we should remove lines connected to that missing point or make it more evident to the user that that number is not a zero but a missing value.
Median lines are not computed correctly, because the sum is divided by the total number of values, instead of taking into account only non-null values.
Fixes https://github.com/gem/oq-platform/issues/571
Tests are green: https://ci.openquake.org/job/zdevel_oq-platform/245/
I've managed to display charts also in case of some missing data, but currently null values are displayed as 0. Instead of that, we should remove lines connected to that missing point or make it more evident to the user that that number is not a zero but a missing value. Median lines are not computed correctly, because the sum is divided by the total number of values, instead of taking into account only non-null values.