Skip to content

Commit 474b581

Browse files
committed
📝 Update README
1 parent d104e62 commit 474b581

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

README.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,14 @@ Simply run `yarn add vue-chartjs chart.js`
3838
Or if you want to use it directly in the browser add
3939

4040
```html
41-
<script src="https://unpkg.com/vue-chartjs/dist/vue-chartjs.full.min.js"></script>
41+
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script>
42+
<script src="https://unpkg.com/vue-chartjs/dist/vue-chartjs.min.js"></script>
4243
```
4344
to your scripts. See [Codepen](https://codepen.io/apertureless/pen/zEvvWM)
4445

45-
## Explanation of Different Builds
46-
There are three different entry points. It depends on which build setup do you have. The dependencies are bundled or required as a peerDependency.
47-
48-
- Browser
49-
- Browserify / Webpack 1
50-
- Webpack 2
51-
52-
| Build | Chart.js |
53-
|---|---|
54-
| vue-chartjs.full.js | Bundled |
55-
| vue-chartjs.full.min.js | Bundled |
56-
| vue-chartjs.js | peerDependency |
57-
| vue-chartjs.min.js | peerDependency |
58-
| es/index* | peerDependency |
5946

6047
### Browser
61-
You can use `vue-chartjs` directly in the browser without any build setup. Like in this [codepen](https://codepen.io/apertureless/pen/zEvvWM). For this case, please use the `vue-chartjs.full.min.js` which is the minified version. It has Chart.js bundled into it. And bundled to a UMD Module. So you only need that one file.
48+
You can use `vue-chartjs` directly in the browser without any build setup. Like in this [codepen](https://codepen.io/apertureless/pen/zEvvWM). For this case, please use the `vue-chartjs.min.js` which is the minified version. You also need to add the Chart.js CDN script.
6249

6350
You can then simply register your component:
6451

0 commit comments

Comments
 (0)