GimmyHchs / vue-charts

Base on Vue2.0 wrapper for ChartJs. (Deprecated)
MIT License
357 stars 85 forks source link

How to use with import ? #7

Closed SacDin closed 6 years ago

zhihuiFan commented 7 years ago

you may not have to use import.

here is how I use, it works perfectly. in my main.js

import VueRouter from "vue-router";
require('../node_modules/chart.js/dist/Chart.bundle.min.js')
require('../node_modules/hchs-vue-charts/dist/vue-charts.js')

then I can use in any other .vue component without any other actions.

fyyyyy commented 7 years ago

Also see #19