chartjs-plugin-streaming icon indicating copy to clipboard operation
chartjs-plugin-streaming copied to clipboard

Question about vertical scale

Open alvaro-prieto opened this issue 5 years ago • 1 comments

Hi,

Great plugin!!

Is it possible to auto-adjust the vertical scale of the chart to the data in the viewport?

I am using panning and zoom, but I would like the vertical scale fit to the data that is currently in the viewing area. Is that possible? Currently my old data, (even if it is out of the visible area but it is in the series data), is taken into account to calculate the vertical scale.

thanks a lot!

alvaro-prieto avatar Sep 17 '19 08:09 alvaro-prieto

Though you can manually set ticks.min and ticks.max for y axis using visible data only as described in #78, it might be useful to have an option for it.

nagix avatar Jun 13 '21 15:06 nagix