Closed TristanDuck closed 2 years ago
Updated to vue3, chartjs 3.x, and chartjs-plugin-streaming 2.x.
spanGaps: false, didn't work but spanGaps: 1000 works where 1000 is time in ms (for my x-axis).
@TristanDuck where exactly did you set that? I'm using the latest ChartJS and Streaming Plugin but my gaps are being spanned no matter what I do
@BenWoodford sorry for the late reply, but I put it inside the dataset array and not my options array. datasets: [ { fill: false, spanGaps: 1000, cubicInterpolationMode: 'monotone', parsing: false, pointHitRadius: 0, pointRadius: 0, borderWidth: 1.5, label: 'Label', data: [] } ]
Using a listener-based feed, whenever there is a time-gap of no data it will cutoff the graph. However, when new data comes in it will interpolate the gap of no data between the two points. Is there any way I can keep the chart showing no data points during the cutoff?
Chartjs v2.9.4 chartjs-plugin-streaming v1.9
Added spanGaps in dataset array, but doesn't seem to be working.
Example of cutoff:![a](https://user-images.githubusercontent.com/8880898/136463304-bbee5959-61e9-4006-a810-05a29c18b843.PNG)
Example of unwanted interpolation:![b](https://user-images.githubusercontent.com/8880898/136463360-a60f1703-c8eb-4625-9a6e-f34d413494cf.PNG)