echarts渲染出的图表和文字出现模糊问题

方法一:加入参数,使用svg渲染,清晰度高

var myChart = echarts.init(document.getElementById('chart'), null, { renderer: 'svg' })

方法2:canvas渲染,通过调整devicePixelRatio提升清晰度

var myChart = echarts.init(document.getElementById('echarts_warn'),null, {devicePixelRatio: 2})

 

posted @ 2021-08-16 11:40  moonskies  阅读(1212)  评论(0编辑  收藏  举报