随笔分类 -  echarts

摘要:第一种方法: 在切换时用v-if进行图表的显示与隐藏 第二种方法: 先销毁所有实例再创建新的实例 this._myChart1.dispose(); //销毁所有实例 this._myChart2.dispose(); this.$nextTick(() => { this._myChart1 = 阅读全文
posted @ 2021-07-05 09:40 执手听风吟 阅读(532) 评论(0) 推荐(0) 编辑
摘要:基本用法请查看echarts官网。 一、图例legend的设置。 1.字体和颜色的设置 textStyle:{ fontSize:15, color:'#fff' } 2.样式的设置 legend: { data:systemName, itemWidth:40, itemHeight:20, te 阅读全文
posted @ 2020-12-14 18:49 执手听风吟 阅读(6228) 评论(0) 推荐(0) 编辑