mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 03:52:59 +08:00
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 options = this.setupOptions(chart, initOptions)
|
||||||
const newChart = new G2WordCloud(container, options)
|
const newChart = new G2WordCloud(container, options)
|
||||||
newChart.on('point:click', param => {
|
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
|
return newChart
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user