From afbc047c77b57f535fca98fd3a99a1fb7e2aa6eb Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:47:25 +0100 Subject: [PATCH] fix(insights): chart start date (#6491) Switch charts to stretch X-axis to the full width --- .../components/LineChart/createChartOptions.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/src/component/executiveDashboard/components/LineChart/createChartOptions.ts b/frontend/src/component/executiveDashboard/components/LineChart/createChartOptions.ts index 71785348d1..1e88d5bfe2 100644 --- a/frontend/src/component/executiveDashboard/components/LineChart/createChartOptions.ts +++ b/frontend/src/component/executiveDashboard/components/LineChart/createChartOptions.ts @@ -1,5 +1,4 @@ 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'; @@ -76,7 +75,6 @@ export const createOptions = ( maxRotation: 90, minRotation: 23.5, }, - min: format(subMonths(new Date(), 3), 'yyyy-MM-dd'), }, }, }) as const;