Skip to content

Commit b279d40

Browse files
committed
checked alerts histogram and data is passed correctly
1 parent 2325734 commit b279d40

File tree

1 file changed

+1
-5
lines changed
  • x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel

1 file changed

+1
-5
lines changed

x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/alerts_histogram.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ export const AlertsHistogram = React.memo<AlertsHistogramProps>(
7979
onBrushEnd={updateDateRange}
8080
// showLegend controls the default legend coming from Elastic chart, we show them when our customised legend items doesn't exist (but we still want to show legend).
8181
showLegend={showLegend && legendItems.length === 0}
82-
// Please double check if the data passed to the chart contains all the buckets, even the empty ones.
83-
// the showLegendExtra will display the last element of the data array as the default legend value
84-
// and if empty buckets are filtered out you can probably see a value that doesn't correspond
85-
// to the value in the last time bucket visualized.
86-
// showLegendExtra
82+
showLegendExtra={showLegend}
8783
theme={theme}
8884
baseTheme={baseTheme}
8985
locale={i18n.getLocale()}

0 commit comments

Comments
 (0)