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

This commit is contained in:
Chris Cowan 2019-04-16 13:00:38 -07:00 committed by GitHub
parent f28e743598
commit 8d00651ff8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -176,6 +176,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[];