Skip to content
On this page

echarts getDataURL导出png

javascript
const chart = echarts.getInstanceByDom(document.getElementById(this.chartId))
this.imgUrl = chart.getDataURL({
  type: 'png',
  backgroundColor: '#fff',
  animation: false
})

更新时间: