mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix(图表): 修复象限图点击标签无法触发联动跳转
This commit is contained in:
@@ -221,6 +221,9 @@ export class Quadrant extends G2PlotChartView<ScatterOptions, G2Scatter> {
|
||||
const { Scatter: G2Scatter } = await import('@antv/g2plot/esm/plots/scatter')
|
||||
const newChart = new G2Scatter(container, options)
|
||||
newChart.on('point:click', action)
|
||||
if (options.label) {
|
||||
newChart.on('label:click', action)
|
||||
}
|
||||
newChart.on('click', () => quadrantDefaultBaseline(defaultBaselineQuadrant))
|
||||
newChart.on('afterrender', () => quadrantDefaultBaseline(defaultBaselineQuadrant))
|
||||
const yAxis = parseJson(chart.customStyle).yAxis
|
||||
|
||||
Reference in New Issue
Block a user