Jacco van den Berg

Results 222 comments of Jacco van den Berg

Might needs to be the same as in the rollup config: https://github.com/chartjs/chartjs-plugin-datalabels/blob/master/rollup.config.js#L24 So instead of: ```js map: { datalabels: { "chart.js": "chart", "chart.js/helpers": "chart" } } ``` You get: ```js...

As soon as the new version releases for chart.js V3 you can use the `initial` property on the context you get to see if the chart is in view. The...

You can use the [`getZoomLevel`](https://stackblitz.com/edit/react-ts-1vewrp?file=Chart.js) API call to get the zoom level so you dont need to keep your own state: https://stackblitz.com/edit/react-ts-1vewrp?file=Chart.js

Those are the real zoom values, so that a zoomLevel of 8 is always consistent and the same, in your solution if someone zooms 7 times by selecting almost the...

You could use the tick callback that is build in chart.js itself to round the tick (this will only be visual, so the actual data bound is still the float)....

It seems to work but verry buggy and inconsistent, if you upgrade to Chart.js V3 and V1 of the zoom plugin it works fine: https://www.chartjs.org/chartjs-plugin-zoom/latest/samples/drag/category.html

For the CDN links to work it need to match version (0.7.7 relies on Chart.js V2 and version >= 1 relies on CHart.js V3) also Chart.js needs to be loaded...

looks like there is some more that needs to be fixed before you can use this with V3, in V3 the way of import Chart.js has changed with Treeshaking so...

Guide is wrong, see this PR for correct way https://github.com/nagix/chartjs-plugin-streaming/pull/159/files

>most popular charting library in the world (see GitHub stars) I don't know how its now but I did some comparison of some libs almost 2 years ago it seems,...