单个折线图
window.onresize = myChartOption.resize;
多个折线图
window.addEventListener("resize", () => {
myChartOption.resize()
myChartOption2.resize()
myChartOption3.resize()
})
window.onresize = myChartOption.resize;
window.addEventListener("resize", () => {
myChartOption.resize()
myChartOption2.resize()
myChartOption3.resize()
})
本文标题:echarts插件-图表宽度自适应
本文链接:https://www.haomeiwen.com/subject/ztrqbctx.html
网友评论