Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
s0ftik3 committed Dec 24, 2023
2 parents 87cdb19 + f42ec68 commit 2615668
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const MyChart = () => {

If you don't want to import and register the controllers, elements, scales, and plugins you want to use, you can use the following solution:

> **Note**: it is considered to better use the tree-shakable way to decrease the bundle size.
> [!NOTE]\
> It is considered to better use the tree-shakable way, to decrease the bundle size.
```tsx
import 'chart.js/auto'
Expand All @@ -100,7 +101,8 @@ Check out `/dev` folder and run the SolidJs application to see how it works.

You can also use the `DefaultChart` components:

> **Note**: `DefaultChart` is a wrapper around `Chart` component, so you can use all the props from `Chart` component.
> [!NOTE]\
> `DefaultChart` is a wrapper around `Chart` component, so you can use all the props from `Chart` component.
> `DefaultChart` component does _not_ have its registrable elements registered by default, so you need to register them yourself unless you use `chart.js/auto`.
```tsx
Expand Down

0 comments on commit 2615668

Please sign in to comment.