Ben McCann

Results 1643 comments of Ben McCann

It's cause bar chart uses the `elements.rectangle` options, which would be a bit odd for us to use. Too bad this isn't called "bar" as I think that'd be more...

Perhaps https://github.com/chartjs/chartjs-plugin-zoom/pull/215 will help you some? But it seems like you also are concerned that only one of the two axes is being zoomed?

You could add an `afterUpdate` hook, where you round the scale min/max

See here: https://www.chartjs.org/docs/latest/developers/plugins.html

What version are you using? I thought this was fixed in the latest version

I'm not at my computer at the moment to test, but before it would happen with a click and that's what I thought was fixed. However, if you moved your...

Yeah. We should do both. I think this PR would fix it: https://github.com/chartjs/Chart.js/pull/6227

If each chart uses the same scale, you could do this by adding an `onPan` and `onZoom` that sets the `min` and `max` for each scale

You should put a space after commas to match the existing code style

See also https://github.com/jtblin/angular-chart.js/pull/676 and https://github.com/jtblin/angular-chart.js/issues/627 regarding the versioning