fix: Drill to detail blocked by tooltip (#22082)

Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
This commit is contained in:
Michael S. Molina
2022-11-23 14:50:06 -05:00
committed by GitHub
parent 1809d2b957
commit 3bc0865d90
45 changed files with 572 additions and 255 deletions

View File

@@ -40,8 +40,10 @@ import {
getLegendProps,
sanitizeHtml,
} from '../utils/series';
import { defaultGrid, defaultTooltip } from '../defaults';
import { defaultGrid } from '../defaults';
import { OpacityEnum, DEFAULT_LEGEND_FORM_DATA } from '../constants';
import { getDefaultPosition } from '../utils/tooltip';
import { Refs } from '../types';
const percentFormatter = getNumberFormatter(NumberFormats.PERCENT_2_POINT);
@@ -115,6 +117,7 @@ export default function transformProps(
...DEFAULT_FUNNEL_FORM_DATA,
...formData,
};
const refs: Refs = {};
const metricLabel = getMetricLabel(metric);
const groupbyLabels = groupby.map(getColumnLabel);
const keys = data.map(datum =>
@@ -212,7 +215,7 @@ export default function transformProps(
...defaultGrid,
},
tooltip: {
...defaultTooltip,
position: getDefaultPosition(refs),
show: !inContextMenu,
trigger: 'item',
formatter: (params: any) =>
@@ -240,5 +243,6 @@ export default function transformProps(
groupby,
selectedValues,
onContextMenu,
refs,
};
}