ckn.chart
v3.1.19
Published
This library is used for create chart component in CKN Framework. For more detail please visit CKN Frontend Framework (https://www.npmjs.com/package/ckn.frontend).
Downloads
102
Readme
CKN Chart
This library is used for create chart component in CKN Framework. For more detail please visit CKN Frontend Framework (https://www.npmjs.com/package/ckn.frontend).
Installation
CKN Chart is public npm package on NPM registry.
npm install ckn.chart
ChartJS
CKN Chart provide frontend component for chart.js (https://www.chartjs.org/)
Component Registration
import {ChartJS} from 'ckn.chart';
// Register component
Component.register(ChartJS);
Component Usage
<ChartJS type="bar" datasets="{{[[1,2,3]]}}" labels="{{['A','B','C']}}"></ChartJS>
Component Properties
| Property | Type | Default | Description | |----------|-----------------|---------|----------------------------------| | type | string | bar | Type of chart ex. bar, pie | | datasets | Array of array | - | Array of dataset | | labels | Array of string | - | Label of graph ex. axis-x labels |