New time series charts show all data missing if one part of "contribution" is missing #17020
Closed
3 tasks done
Labels
#bug
Bug report
explore:advanced-analysis
Related to Advanced Analysis in Explore
viz:charts:echarts
Related to Echarts
When you create a time series viz with a groupby and contribution
Total
, if at least one of the categories is missing a value for the date, no data points for that date are shown.This is sort of reasonable - technically, the data could be missing for the missing category, so it is not clear how to calculate contribution. However, in most cases, the missing data point corresponds to the value 0, and removing all the other data points is very confusing. In older charts (ex. line chart), contribution assumes 0 if data is missing, so we should provide some way to "fill" 0 for feature parity.
I think there are two ways
resample
to fill missing values with 0. This is not possible yet because resample doesn't work if there's a group by - the error message is:cannot reindex from a duplicate axis
and occurs hereHow to reproduce the bug
x
, metriccount
, contributiontotal
2021-09-02
,hi
)Expected results
Two bars should be shown for 09-01, one bar should be shown for 09-02
Actual results
No bars are shown for 09-02, even though there is a data point
Environment
(please complete the following information):
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
This is somewhat related to this issue: #15036
The text was updated successfully, but these errors were encountered: