Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update auto import in usage docs #10955

Merged
merged 1 commit into from Dec 10, 2022

Conversation

LeeLenaleee
Copy link
Collaborator

No description provided.

@@ -54,7 +54,7 @@ As you can see, Chart.js requires minimal markup: a `canvas` tag with an `id` by
Lastly, let’s create the `src/acquisitions.js` file with the following contents:

```jsx
import { Chart } from 'chart.js/auto'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Named export Chart also exists there, so it is also a working code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but in the installation section we use this syntax since v3 so to be more consistent i like this approach more

@LeeLenaleee LeeLenaleee merged commit c4fbd5f into chartjs:master Dec 10, 2022
@LeeLenaleee LeeLenaleee deleted the update-import-docs branch December 10, 2022 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants