搬运自: https://www.jianshu.com/p/47325792a61c

 

解决方法:

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

const myChart = this.$echarts.init(document.getElementById('myChart'), null, {renderer: 'svg'});

 

2. 仍然使用 canvas 渲染,通过调整 devicePixelRatio 提升清晰度

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

 

相关文章:

  • 2021-08-15
  • 2021-05-10
  • 2021-05-15
  • 2022-01-04
  • 2021-05-11
  • 2022-12-23
  • 2021-09-15
  • 2022-02-09
猜你喜欢
  • 2021-10-22
  • 2022-12-23
  • 2021-12-31
  • 2021-12-20
  • 2022-01-09
  • 2022-12-23
  • 2021-04-24
相关资源
相似解决方案