mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
fix(plugin-chart-echarts): tooltip overflow bug (#22218)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
This commit is contained in:
@@ -36,7 +36,7 @@ import {
|
||||
TimeSeriesDatum,
|
||||
} from '../types';
|
||||
import { getDateFormatter, parseMetricValue } from '../utils';
|
||||
import { getDefaultPosition } from '../../utils/tooltip';
|
||||
import { getDefaultTooltip } from '../../utils/tooltip';
|
||||
import { Refs } from '../../types';
|
||||
|
||||
const defaultNumberFormatter = getNumberFormatter();
|
||||
@@ -234,8 +234,7 @@ export default function transformProps(
|
||||
bottom: 0,
|
||||
},
|
||||
tooltip: {
|
||||
position: getDefaultPosition(refs),
|
||||
appendToBody: true,
|
||||
...getDefaultTooltip(refs),
|
||||
show: !inContextMenu,
|
||||
trigger: 'axis',
|
||||
formatter: renderTooltipFactory(formatTime, headerFormatter),
|
||||
|
||||
Reference in New Issue
Block a user