Echarts图表制作完成后,由于纵坐标的数值过大导致被遮挡
在配置项grid中添加属性:containLabel:true
echarts tooltip 超出外部容器后被遮挡
只需要在tooltip增加属性confine为true即可
vue中出现“There is a chart instance already initialized on the dom.”的警告
// 检测是否已经存在echarts实例,如果不存在,则不再去初始化
let chart = this.$echarts.getInstanceByDom(this.$refs.chart);
if (chart == null) {
chart = this.$echarts.init(this.$refs.chart);
}
chart.setOption(this.chartsOption);