> 没必要使用vue-echarts,直接一个div 设置 ref. 在echarts.init() 的时候传入div的ref值就好了,后续操作和常规的一样. > > 或者看我这个[例子](https://github.com/hanfengcan/easyBI/blob/master/src/components/mecharts/pie.vue) > > ``` > <div slot="container" class="container" ref="pie"></div> > this.e = echarts.init(this.$refs.pie, 'light') > ```
这样是可行,但我不只是需要完成一个饼图而已,有很多其他类型的图,只是饼图这出现这个问题了,所以还是得解决这个问题,实在不行再考虑饼图单独弄一套 [ Full content available at: https://github.com/apache/incubator-echarts/issues/9122 ] This message was relayed via gitbox.apache.org for [email protected]
