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

方法1:使用svg渲染,svg渲染出的图表的清晰度高于canvas

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

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

var myChart = echarts.init(document.getElementById('chart'), null, {
    
    devicePixelRatio: 2.5});

猜你喜欢

转载自blog.csdn.net/seeeeeeeeeee/article/details/122257305