chartjs-chart-sunburst-extend

1.0.4 • Public • Published

Chart.js Sunburst Chart

Chart.js sunburst chart implementation

drawing

See Live Sample

Install

npm install --save chart.js chartjs-chart-sunburst

Chart Type

The code will register one new chart type with chartjs: sunburst

Usage

Using node:

require('chart.js');
require('chartjs-chart-sunburst');

Or with a script tag

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.bundle.min.js"></script>

<script src="node_modules/chartjs-chart-sunburst/build/Chart.Sunburst.umd.min.js"></script>

and then use the sunburst chartType when create a Chart:

var ctx = document.getElementById('chart-area').getContext('2d');
var config = {
    type: 'sunburst',
    options: {
      ...
    },
    ...
};
new Chart(ctx, config);

Building

yarn install
yarn build

Package Sidebar

Install

npm i chartjs-chart-sunburst-extend

Weekly Downloads

22

Version

1.0.4

License

MIT

Unpacked Size

12.5 kB

Total Files

4

Last publish

Collaborators

  • olexandrbig