@blueking/bkcharts

3.7.0-beta.5 • Public • Published

安装

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: {}
})

Package Sidebar

Install

npm i @blueking/bkcharts

Weekly Downloads

268

Version

3.7.0-beta.5

License

none

Unpacked Size

1.44 MB

Total Files

4

Last publish

Collaborators

  • blueking