echarts图例失真, 字体模糊 问题解决

作者:guoxj
浏览:40

// 方法一:
this.chart = this.$echarts.init(document.getElementById('id'), null, {renderer: 'svg'}) // 采用svg渲染,比canvans清晰度高

// 方法二:
this.chart = this.$echarts.init(document.getElementById('id'), null, {devicePixelRatio: 2.5}) // 采用canvans渲染,devicePixelRatio调整清晰度

 




登录后回复

共有0条评论