shutterstock / rickshaw

JavaScript toolkit for creating interactive real-time graphs
https://shutterstock.github.io/rickshaw
MIT License
6.53k stars 941 forks source link

Can Rickshaw.Series.fill help me fill missing data in series? #599

Open simPod opened 7 years ago

simPod commented 7 years ago

Hi, I'd like to ask how exactly can I use Rickshaw.Series.fill. I was wondering how can add missing data points, whether it would be able to add null values to the places where I'm missing data.

My graph with 2 data points looks like this but I don't fancy the lines connecting both points on sides of gaps. I would prefer empty space or at least 0 instead.

image image

I understand it might be very difficult with inconsistent steps between points however I was able to round steps to multiples of 60 seconds.

If it's not possible with Rickshaw, I'd probably create the logic on the backend side