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} />
|
<EuiXAxis marginLeft={MARGIN_LEFT} />
|
||||||
<EuiYAxis tickFormat={formatterFunction} marginLeft={MARGIN_LEFT} />
|
<EuiYAxis tickFormat={formatterFunction} marginLeft={MARGIN_LEFT} />
|
||||||
<EuiCrosshairX
|
<EuiCrosshairX
|
||||||
|
marginLeft={MARGIN_LEFT}
|
||||||
seriesNames={seriesLabels}
|
seriesNames={seriesLabels}
|
||||||
itemsFormat={itemsFormatter}
|
itemsFormat={itemsFormatter}
|
||||||
titleFormat={titleFormatter}
|
titleFormat={titleFormatter}
|
||||||
|
|
|
@ -59,6 +59,7 @@ declare module '@elastic/eui/lib/experimental' {
|
||||||
value: any;
|
value: any;
|
||||||
}
|
}
|
||||||
type EuiCrosshairXProps = CommonProps & {
|
type EuiCrosshairXProps = CommonProps & {
|
||||||
|
marginLeft?: number;
|
||||||
seriesNames: string[];
|
seriesNames: string[];
|
||||||
titleFormat?: (dataPoints: EuiDataPoint[]) => EuiFormattedValue | undefined;
|
titleFormat?: (dataPoints: EuiDataPoint[]) => EuiFormattedValue | undefined;
|
||||||
itemsFormat?: (dataPoints: EuiDataPoint[]) => EuiFormattedValue[];
|
itemsFormat?: (dataPoints: EuiDataPoint[]) => EuiFormattedValue[];
|
||||||
|
|
Loading…
Reference in a new issue