diff --git a/frontend/src/component/executiveDashboard/LineChart/createChartOptions.ts b/frontend/src/component/executiveDashboard/LineChart/createChartOptions.ts index 698cf6fa82..c3865b0350 100644 --- a/frontend/src/component/executiveDashboard/LineChart/createChartOptions.ts +++ b/frontend/src/component/executiveDashboard/LineChart/createChartOptions.ts @@ -1,4 +1,5 @@ import { Theme } from '@mui/material'; +import { format, subMonths } from 'date-fns'; import { ILocationSettings } from 'hooks/useLocationSettings'; import { TooltipState } from './ChartTooltip/ChartTooltip'; import { createTooltip } from './createTooltip'; @@ -72,6 +73,7 @@ export const createOptions = ( color: theme.palette.text.secondary, display: !isPlaceholder, }, + min: format(subMonths(new Date(), 3), 'yyyy-MM-dd'), }, }, }) as const;