forked from github/dataease
Merge pull request #12922 from dataease/pr@dev-v2@refactor_waterfall_tooltip_trigger_area
refactor(图表): 扩大瀑布图的提示触发范围
This commit is contained in:
commit
b61f04499e
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user