Hello-Huxu commented on issue #9122: vue-echarts使用饼图,效果出现,但是缺少legend字段的data值(侧边可选择是否查看改数据),实例上面没有问题,我也拉取了vue的实例查看过,但是代码上找不出问题,不知是否是引入问题 URL: https://github.com/apache/incubator-echarts/issues/9122#issuecomment-425377019 > 没必要使用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') > ``` 这样是可行,但我不只是需要完成一个饼图而已,有很多其他类型的图,只是饼图这出现这个问题了,所以还是得解决这个问题,实在不行再考虑饼图单独弄一套
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
