Fixes bug where tooltip doesn't line up with data (#34749)

This commit is contained in:
Chris Cowan 2019-04-09 14:15:01 -07:00 committed by GitHub
parent 87600233e5
commit 4168f3594c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -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}

View file

@ -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[];