fix: AntV组合图无法进行联动

This commit is contained in:
ulleo 2023-11-23 18:01:54 +08:00
parent f6c6a3121d
commit 29703f950b

View File

@ -190,8 +190,10 @@ export default {
this.myChart = new this.$chartmix(this.chartId, _params)
this.myChart.off('edge:click')
this.myChart.on('edge:click', this.antVAction)
this.myChart.off('point:click')
this.myChart.on('point:click', this.antVAction)
this.myChart.off('interval:click')
this.myChart.on('interval:click', this.antVAction)
this.myChart.render();
@ -342,6 +344,8 @@ export default {
options: {
data: _.map(t.data, (v) => {
return {
quotaList: v.quotaList,
dimensionList: v.dimensionList,
key: _.join(_.map(v.dimensionList, (d) => d.value), "\n"),
value: v.value,
i: _index,
@ -401,6 +405,8 @@ export default {
options: {
data: _.map(t.data, (v) => {
return {
quotaList: v.quotaList,
dimensionList: v.dimensionList,
key: _.join(_.map(v.dimensionList, (d) => d.value), "\n"),
value: v.value,
i: _index,