mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-15 11:55:49 +08:00
23 lines
403 B
JavaScript
23 lines
403 B
JavaScript
import Vue from 'vue'
|
|
import ECharts from '../src/components/ECharts.vue'
|
|
import Demo from './Demo.vue'
|
|
|
|
// built-in theme
|
|
import 'echarts/theme/dark'
|
|
|
|
// custom theme
|
|
import {default as theme} from './theme'
|
|
|
|
Vue.component('chart', ECharts)
|
|
|
|
// registering custom theme
|
|
ECharts.registerTheme('vue-echarts', theme)
|
|
|
|
new Vue({
|
|
el: '#demo',
|
|
components: {
|
|
demo: Demo
|
|
},
|
|
render: h => h(Demo)
|
|
})
|