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)