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 integration docs: first method only works with Webpack #5555

Merged
merged 2 commits into from Jul 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/getting-started/integration.md
Expand Up @@ -2,13 +2,6 @@

Chart.js can be integrated with plain JavaScript or with different module loaders. The examples below show how to load Chart.js in different systems.

## ES6 Modules

```javascript
import Chart from 'chart.js';
var myChart = new Chart(ctx, {...});
```

## Script Tag

```html
Expand All @@ -18,6 +11,13 @@ var myChart = new Chart(ctx, {...});
</script>
```

## Webpack

```javascript
import Chart from 'chart.js';
var myChart = new Chart(ctx, {...});
```

## Common JS

```javascript
Expand Down