Merge pull request #12922 from dataease/pr@dev-v2@refactor_waterfall_tooltip_trigger_area

refactor(图表): 扩大瀑布图的提示触发范围
This commit is contained in:
wisonic-s 2024-10-25 18:14:23 +08:00 committed by GitHub
commit b61f04499e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,16 +86,7 @@ export class Waterfall extends G2PlotChartView<WaterfallOptions, G2Waterfall> {
xField: 'field',
yField: 'value',
seriesField: 'category',
appendPadding: getPadding(chart),
interactions: [
{
type: 'tooltip',
cfg: {
start: [{ trigger: 'interval:mousemove', action: 'tooltip:show' }],
end: [{ trigger: 'interval:mouseleave', action: 'tooltip:hide' }]
}
}
]
appendPadding: getPadding(chart)
}
const options = this.setupOptions(chart, baseOptions)
const { Waterfall: G2Waterfall } = await import('@antv/g2plot/esm/plots/waterfall')