0.4.1 • Published 4 years ago
zchart v0.4.1
zchart
前置条件
必须提前引入 element-ui
引入 zchart
import Vue from 'vue'
import Zchart from 'zchart'
Vue.use(Zchart)
全局配置
不传参数使用默认值
Vue.use(Zchart, {
requestUrl: 'http://xxx.com', // 请求接口地址
headers: {}, // 请求头
colors: ['#F26A6A', '#365EEE', '#F5C358', '#4EBF7A'] // 图表色系,这是默认值
})
使用
<ZchartLine />
<ZchartPie />
<ZchartBar />
<ZchartTable />