@blueking/bkcharts
v3.7.0-beta.5
Published
```sh npm install @blueking/bkcharts ```
Downloads
412
Maintainers
Readme
安装
npm install @blueking/bkcharts
导入文件
import BKChart from '@blueking/bkcharts'
const ctx = document.getElementById('myChart').getContext('2d');
const instance = new BKChart(ctx, {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'My First dataset',
backgroundColor: 'rgb(255, 99, 132)',
borderColor: 'rgb(255, 99, 132)',
data: [0, 10, 5, 2, 20, 30, 45]
}]
},
options: {}
})