Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

Latest commit

 

History

History
34 lines (26 loc) · 413 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 413 Bytes

vue-chart

A vue plugin which import chart.js as a vue component.

Install

npm i @likelz/vue-chart

Usage

import vChart from '@likelz/vue-chart';

Vue.use(vChart);

// or with optional tag name
Vue.use(vChart, {
  tagName: 'MyTagName',
});
<v-chart
  width="400"
  height="400"
  type="bar"
  :data="data"
  :options="options"
  :chart.sync="chart"
  :ctx.sync="ctx"
/>