forked from github/dataease
Merge pull request #6462 from dataease/pr@dev-v2@fix_wordcloud_click_position
fix: 词云图点击事件位置优化
This commit is contained in:
commit
16e69fccf3
@ -78,7 +78,7 @@ export class WordCloud extends G2PlotChartView<WordCloudOptions, G2WordCloud> {
|
||||
const options = this.setupOptions(chart, initOptions)
|
||||
const newChart = new G2WordCloud(container, options)
|
||||
newChart.on('point:click', param => {
|
||||
action({ data: { data: param.data.data.datum } })
|
||||
action({ x: param.x, y: param.y, data: { data: param.data.data.datum } })
|
||||
})
|
||||
return newChart
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user