vue图表点击联动展示z-tree&echarts
1.点击表格展示对应扇形统计图,效果如下: 2.统计图组件Statistics .vue代码如下: <template> <div> <div :id="idname" :style="{width: '100%', height: allheight+ 'px'}"></div> </div> </template> <script> export default { name: 'Statistics', props: { statitle: { type: String }, idname: { type: String }, signlist: { type: Array }, colorlist: { type: Array }, showDatalist: { type: Array }, staradios: { type: String }, subtext: { type: String }, legendbottom: { type: Number }, allheight: { type: Number } }, mounted () { this.refreshpic() }, watch: { showDatalist: function (nval, oval) { this.refreshpic() } }, methods: { refreshpic