Fixes bug where tooltip doesn't line up with data (#34749)
This commit is contained in:
parent
87600233e5
commit
4168f3594c
|
@ -175,6 +175,7 @@ export const ChartSection = injectI18n(
|
|||
<EuiXAxis marginLeft={MARGIN_LEFT} />
|
||||
<EuiYAxis tickFormat={formatterFunction} marginLeft={MARGIN_LEFT} />
|
||||
<EuiCrosshairX
|
||||
marginLeft={MARGIN_LEFT}
|
||||
seriesNames={seriesLabels}
|
||||
itemsFormat={itemsFormatter}
|
||||
titleFormat={titleFormatter}
|
||||
|
|
|
@ -59,6 +59,7 @@ declare module '@elastic/eui/lib/experimental' {
|
|||
value: any;
|
||||
}
|
||||
type EuiCrosshairXProps = CommonProps & {
|
||||
marginLeft?: number;
|
||||
seriesNames: string[];
|
||||
titleFormat?: (dataPoints: EuiDataPoint[]) => EuiFormattedValue | undefined;
|
||||
itemsFormat?: (dataPoints: EuiDataPoint[]) => EuiFormattedValue[];
|
||||
|
|
Loading…
Reference in a new issue