Skip to content

Commit

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

* showNullValues
  • Loading branch information
cauemarcondes authored Mar 15, 2022
1 parent 737ec83 commit 63caa0e
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 63caa0e

Please sign in to comment.