Closed wangrui97 closed 2 years ago
图表宽高设置的过大?
<EChart echarts={echarts} option={option} onInit={this.onInit} />
onInit = (canvas, width, height, dpr) => {
const chart = echarts.init(canvas, null, {
width: width,
height: height,
devicePixelRatio: dpr, // new
});
canvas.setChart(chart);
chart.setOption(this.state.option);
return chart; // 必须return
};
我现在调的这种方式,没看到哪里可以设置宽高呢
信息有限,很难定位问题,你自己先从以下方面试下
以上如果不行的话,源码copy一份到项目中,加log排查下
未收到更多反馈,关闭
Taro 2.2.15