Make sure these boxes are checked before submitting your issue - thank you!
Superset does not represent null values as 0 on timeseries charts.
Related to: https://github.com/apache/incubator-superset/issues/5427
For the dataset:
Date: Value
Jan 1: 10
Jan 3: 7
026.3
For the above data set, Superset should draw 3 points on the chart:
Jan 1 = 10
Jan 2 = 0
Jan 3 = 7
The Timeseries - Line Chart and Timeseries - Bar Chart will not graph "missing" records from the query.
Line Chart:
Bar Chart:
See above examples
@mistercrunch I'd love some feedback from the core team on this (not sure who is the right person?) before we get a PR submitted.
For line chart, there's the resample feature that can help forcing null to zeroes:

Null handling is trickier than it may seem as people may want:
Ultimately we should offer these options in a nice way. For now the resample option and showing markers are ways to mitigate.
@mistercrunch thank you for pointing out the different display options that people want.
@aaronbannin I would want NULL values to be handled by this option; "lines in line chat to be broken off, show a line on the left, and a line on the right"
I don't think NVD3 supports that. We're planning on moving away from NVD3 at some point, that may be a pre-req to implementing this.
Perhaps the underlying problem is that the data being passed into the chart does not have a value for every x-axis tick? This may be solvable without editing the NVD3.
[Jan 1, Jan 2, Jan 3].{Jan 1: 10, Jan 2: None, Jan 3: 7}. Each metric would need to be left-joined into the source series.This logic should work for time series graphs. Jan 2 occurs between Jan 1 and Jan 3, regardless of if any data is in the returned set. The approach would not work for arbitrary dimensions as Superset does not have knowledge of the set of values. Furthermore, this would mean that the first x-axis bounds would be determined by the date range and not the returned set.
In response to approaches:
lines in line chat to be broken off, show a line on the left, and a line on the right: I agree with @davidhassan that this is probably the best solution. It accurately visualizes the returned data.
lines to skip over missing points, connecting the dots on either side: This seems like the worst option as the visual is out of sync with the underlying data (more so than replacing with 0s, in my opinion, as 0 is "closer" to null than other values).
Some examples:
Line chart with disconnected lines for null values. Note that another metric has values for a given x-tick, so the chart "knows" that series A is null while series B has value.

Connecting null values:
There is only 1 series, missing values for Sat, Sun, and Mon. The line is drawn between the two known data points. Inserting null values should produce the same result as the above example, but with one series.


This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please do not close
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.
Most helpful comment
For line chart, there's the resample feature that can help forcing null to zeroes:

Null handling is trickier than it may seem as people may want:
Ultimately we should offer these options in a nice way. For now the resample option and showing markers are ways to mitigate.