Skip to content

Commit

Permalink
Fixes bug where tooltip doesn't line up with data (#34749) (#34835)
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker authored Apr 16, 2019
1 parent f28e743 commit 8d00651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/infra/types/eui_experimental.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down

0 comments on commit 8d00651

Please sign in to comment.