I'm trying to use the Chart.js zooming plugin alongside this plugin, but I want to be able to zoom on a time chart that isn't streaming.
When I try to set zooming settings similar to this example, the chart is able to zoom when plugins.streaming = true and scales.xAxes[0].type = "realtime". However, when the same exact chart has options plugins.streaming = false and scales.xAxes[0].type = "time" (my desired behavior), the zooming doesn't work.
I want to be able to use streaming charts as well as static zooming charts, which is why I need to use both plugins separately, but am having trouble getting this to work.
It seems that chartjs-plugin-zoom 0.x doesn't work well with the 'time' scale, but 1.0.0 fixes it. Try to use chartjs-plugin-zoom 1.0.0 with Chart.js 3.x and chartjs-plugin-streaming 2.x.
I'm trying to use the Chart.js zooming plugin alongside this plugin, but I want to be able to zoom on a time chart that isn't streaming.
When I try to set zooming settings similar to this example, the chart is able to zoom when
plugins.streaming = true
andscales.xAxes[0].type = "realtime"
. However, when the same exact chart has optionsplugins.streaming = false
andscales.xAxes[0].type = "time"
(my desired behavior), the zooming doesn't work.I want to be able to use streaming charts as well as static zooming charts, which is why I need to use both plugins separately, but am having trouble getting this to work.