You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/09/27 09:01:25 UTC

[GitHub] hanfengcan commented on issue #9122: vue-echarts使用饼图,效果出现,但是缺少legend字段的data值(侧边可选择是否查看改数据),实例上面没有问题,我也拉取了vue的实例查看过,但是代码上找不出问题,不知是否是引入问题

hanfengcan commented on issue #9122: vue-echarts使用饼图,效果出现,但是缺少legend字段的data值(侧边可选择是否查看改数据),实例上面没有问题,我也拉取了vue的实例查看过,但是代码上找不出问题,不知是否是引入问题
URL: https://github.com/apache/incubator-echarts/issues/9122#issuecomment-425015196
 
 
   没必要使用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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org