echarts在ie浏览器y轴坐标偏移向上

场景:

绘制的echarts图是用svg渲染的

  import { SVGRenderer, CanvasRenderer } from 'echarts/renderers';
  echarts.use([SVGRenderer, CanvasRenderer])

const chart = this.chart = echarts.init(canvas, null, {
      renderer: 'svg'
})

 

 展示的数字和单位整体向上偏移

解决办法:不使用svg渲染,用默认的canvas渲染

const chart = this.chart = echarts.init(canvas)

 

posted @ 2021-12-02 17:37  ~面朝大海,春暖花开~  阅读(732)  评论(0编辑  收藏  举报