mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
Dashboard charts - always show past 3 months (#6372)
This commit is contained in:
parent
74c760bf4c
commit
ba2b90af42
@ -1,4 +1,5 @@
|
|||||||
import { Theme } from '@mui/material';
|
import { Theme } from '@mui/material';
|
||||||
|
import { format, subMonths } from 'date-fns';
|
||||||
import { ILocationSettings } from 'hooks/useLocationSettings';
|
import { ILocationSettings } from 'hooks/useLocationSettings';
|
||||||
import { TooltipState } from './ChartTooltip/ChartTooltip';
|
import { TooltipState } from './ChartTooltip/ChartTooltip';
|
||||||
import { createTooltip } from './createTooltip';
|
import { createTooltip } from './createTooltip';
|
||||||
@ -72,6 +73,7 @@ export const createOptions = (
|
|||||||
color: theme.palette.text.secondary,
|
color: theme.palette.text.secondary,
|
||||||
display: !isPlaceholder,
|
display: !isPlaceholder,
|
||||||
},
|
},
|
||||||
|
min: format(subMonths(new Date(), 3), 'yyyy-MM-dd'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}) as const;
|
}) as const;
|
||||||
|
Loading…
Reference in New Issue
Block a user