原因 由于是异步加载数据,setOption的时候div的宽高还是0,导致canvas渲染宽高也是0。 解决方法: 加上默认的width和height <div class="echarts-vue" style="width:500px; height:500px" ></div>