refactor(图表): 扩大瀑布图的提示触发范围

This commit is contained in:
wisonic 2024-10-25 18:12:28 +08:00
parent 8aa0379aec
commit 6f8703e889

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')