Skip to content

Commit 970dfc6

Browse files
authored
docs: update docs to be more clear (#1094)
1 parent 6a2adfb commit 970dfc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/docs/faq/registered-scale.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ As you can see in [migration to v4 guide](/docs/migration-to-v4#tree-shaking):
1313
So you should register missed components. For example, if you have `Uncaught Error: "category" is not a registered scale.` error, you should register `CategoryScale`:
1414

1515
```js
16-
import { CategoryScale } from "chart.js";
16+
import { CategoryScale, Chart } from "chart.js";
1717

18-
ChartJS.register(CategoryScale);
18+
Chart.register(CategoryScale);
1919
```

0 commit comments

Comments
 (0)