From 30bed676231ba2e85f320bd2e56d4aca6d8f7949 Mon Sep 17 00:00:00 2001 From: Kerry Gallagher Date: Mon, 21 Oct 2019 13:14:03 +0100 Subject: [PATCH] Use full time interval for x-axis domain --- .../public/pages/logs/analysis/sections/anomalies/chart.tsx | 1 + .../public/pages/logs/analysis/sections/log_rate/bar_chart.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/chart.tsx b/x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/chart.tsx index 73adcd13e2441..e4100c6d774b1 100644 --- a/x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/chart.tsx +++ b/x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/chart.tsx @@ -94,6 +94,7 @@ export const AnomaliesChart: React.FunctionComponent<{ onBrushEnd={handleBrushEnd} tooltip={tooltipProps} baseTheme={isDarkMode ? DARK_THEME : LIGHT_THEME} + xDomain={{ min: timeRange.startTime, max: timeRange.endTime }} /> diff --git a/x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/log_rate/bar_chart.tsx b/x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/log_rate/bar_chart.tsx index de856bee90513..5055e3fc08239 100644 --- a/x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/log_rate/bar_chart.tsx +++ b/x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/log_rate/bar_chart.tsx @@ -90,6 +90,7 @@ export const LogEntryRateBarChart: React.FunctionComponent<{ theme={isDarkMode ? DARK_THEME : LIGHT_THEME} showLegend legendPosition="right" + xDomain={{ min: timeRange.startTime, max: timeRange.endTime }} />