Skip to content

Commit 3cd30b7

Browse files
committed
README.md fix Chart.registry.plugins
1 parent 6bf2c4c commit 3cd30b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ chartjs-plugin-datasource-prometheus can be used with ES6 modules, plain JavaScr
7575
Then, you need to register the plugin to enable it for all charts in the page.
7676

7777
```js
78-
Chart.plugins.register(ChartDatasourcePrometheusPlugin);
78+
Chart.registry.plugins.register(ChartDatasourcePrometheusPlugin);
7979
```
8080

8181
Or, you can enable the plugin only for specific charts.

0 commit comments

Comments
 (0)