这种方式这支出来的就不显示echarts的tooltips,要用下面的方式
第一步:
this.oneComponenthree = this.selectComponent('#mychart-three');
第二步骤 :
initthree(xdata3) { //初始化第三个图表
this.oneComponenthree.init((canvas, width, height,dpr) => {
const chart = echarts.init(canvas, null, {
width: width,
height: height,
// 设置图表像素比
devicePixelRatio: dpr,
});
bottomChart(chart, xdata3) //赋值给echart图表
this.chart = chart;
return chart;
});
},
第三步骤:
function bottomChart(chart, xdata3) {
let option = {