echarts的安装及使用
安装echarts模块
cnpm install echarts
代码案例
<div class="l2">
//放一个容器
<div id="main" style="width: 600px;height:400px;" ref="charts"></div>
</div>
export default {
mounted(){
this.drawLine()
},
methods: {
drawLine() {
// 基于
原创
2020-11-03 20:47:11 ·
2382 阅读 ·
0 评论