Plot: Interval for two seconds?

I’d like to use an interval for displaying time-based data and I’d like the time periods where there is not data to be blank.

But the data I have in this case is every two seconds. Using Plot.lineY(data, {interval: d3.utcSecond... in this case looks kind of like a dotted line (which makes sense).

Is there a way to use interval for something weird like “datapoint every two seconds”?

interval: d3.utcSecond.every(2)

Move along. Nothing to see here. :slight_smile:

5 Likes