v-chartist
A component of Chartist implements by vuejs 2.0
Installation
npm install v-chartist --save
or
bower install vue-chartist --save
Usage
;components:'vue-chartist': VueChartisttemplate: '<vue-chartist :data="data" :options="options" type="Line"></vue-chartist>'{returndata:labels: 'Monday' 'Tuesday' 'Wednesday' 'Thursday' 'Friday'series:12 9 7 8 52 1 35 7 31 3 4 5 6options:fullWidth: truechartPadding:right: 40;};
Props
Property | Description |
---|---|
data | the data of chart |
options | the options of chart |
type | the type of chart, default Line |
listener | the listener of chart |
See the document of Chartist for detail.
Contribution
First, install dependencies
npm install
Second, setup development environment
npm run dev
License
MIT