微信 7.0.20 版本进入小程序 Echarts 折线图无法显示?
发布于 5 年前 作者 jing60 12527 次浏览 来自 官方Issues

微信 7.0.20 版本进入小程序 Echarts 折线图无法显示,Echarts 区域显示为空白,代码片段和后台错误提示信息如下:

initEchart() {
      let that = this;
      that.data.echartsComponent.init(function (canvas, width, height, dpr) {
        let chart = echarts.init(canvas, null, {
          width: width,
          height: height,
          devicePixelRatio: dpr
        });
        canvas.setChart(chart);
        echart = chart;
        that.triggerEvent('EchartsInited', that.properties.echartData.id);
        return chart;
      });
    },

1 回复

这是一个已知问题,我们会尽快进行修复。

回到顶部