1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-27 00:19:39 +01:00

fix(insights): chart start date (#6491)

Switch charts to stretch X-axis to the full width
This commit is contained in:
Tymoteusz Czech 2024-03-13 10:47:25 +01:00 committed by GitHub
parent f2f38a60dc
commit afbc047c77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;