Skip to content

Commit

Permalink
[APM] Show chart tooltip on hover even for empty buckets (elastic#127665
Browse files Browse the repository at this point in the history
)

* show tooltip when null

* showNullValues
  • Loading branch information
cauemarcondes authored and maksimkovalev committed Mar 18, 2022
1 parent 57a8239 commit 014bcb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function BreakdownChart({
<ChartContainer height={height} hasData={!isEmpty} status={fetchStatus}>
<Chart ref={chartRef}>
<Settings
tooltip={{ stickTo: 'top' }}
tooltip={{ stickTo: 'top', showNullValues: true }}
onBrushEnd={(event) =>
onBrushEnd({ x: (event as XYBrushEvent).x, history })
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function TimeseriesChart({
>
<Chart ref={chartRef} id={id}>
<Settings
tooltip={{ stickTo: 'top' }}
tooltip={{ stickTo: 'top', showNullValues: true }}
onBrushEnd={(event) =>
onBrushEnd({ x: (event as XYBrushEvent).x, history })
}
Expand Down

0 comments on commit 014bcb7

Please sign in to comment.