yp-echarts
v0.0.2
Published
A charts plugin for charts build width vue2 and echarts3
Downloads
1
Readme
yp-echarts
a charts plugin build with vue2 and echarts3
安装
$ npm install yp-echarts --save
使用
<template>
<yp-echarts :options="options"></yp-echarts>
</template>
<script>
import ypEcharts from 'yp-echarts';
export default {
components: { ypEcharts },
data() {
return {
options: {
title: {
text: 'ECharts 入门示例'
},
tooltip: {},
legend: {
data: ['销量']
},
xAxis: {
data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
},
yAxis: {},
series: [{
name: '销量',
type: 'bar',
data: [5, 20, 36, 10, 10, 20]
}]
}
}
}
};
</script>