mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Documentation update on requiring Chart.js using CommonJS and es6 (#3788)
This commit is contained in:
parent
ceec907bee
commit
696f8d3a39
@ -44,11 +44,11 @@ To import Chart.js using an awesome module loader:
|
||||
```javascript
|
||||
|
||||
// Using CommonJS
|
||||
var Chart = require('src/chart.js')
|
||||
var Chart = require('chart.js')
|
||||
var myChart = new Chart({...})
|
||||
|
||||
// ES6
|
||||
import Chart from 'src/chart.js'
|
||||
import Chart from 'chart.js'
|
||||
let myChart = new Chart({...})
|
||||
|
||||
// Using requirejs
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user