superset icon indicating copy to clipboard operation
superset copied to clipboard

Line Chart lines are not continuos

Open Ooooooog opened this issue 8 years ago • 6 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [x] I have checked the superset logs for python stacktraces and included it here as text if any
  • [x] I have reproduced the issue with at least the latest released version of superset
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar

I'm trying to draw 'Time Series - Line Chart' with by data with time granurality 5 minutes. I'm using metrics 'count'. I'm seeing these wierd cut lines whenever the value goes to 0, or jumps from 0. Is this a bug or am I missing something?

Superset version

0.22.1

Expected results

lines should be connected to 0 values

Actual results

image image

Steps to reproduce

It doesn't happen if all the data value is higher than 1.

Ooooooog avatar Jan 22 '18 06:01 Ooooooog

Are you sure that real data points exist within the gaps at zero level? If the series is not completely contiguous the lines won't be drawn unless you resample the data in order to interpolate missing data points.

I'd suggest to filter on one of the questionable series an then export the CSV or just display the data as table. So you can see if the query returns contiguous data.

rumbin avatar Jan 22 '18 22:01 rumbin

You were right about that some data is missing at certain time. I realized that count cannot have value of 0.

The problem still relies that the lines are not continuous.. I found out that this happens only when I use group by. When I do not use group by, than the graph is continuous even if there is missing data.

Ooooooog avatar Jan 24 '18 06:01 Ooooooog

When not using group by image

When using group by image

Ooooooog avatar Jan 24 '18 07:01 Ooooooog

Check out the "resample" option

mistercrunch avatar Jan 28 '18 17:01 mistercrunch

Thank you. The line is smooth now!

Ooooooog avatar Jan 31 '18 08:01 Ooooooog

what is the resample option?

VincentZ112 avatar Apr 26 '22 17:04 VincentZ112