даты на general аналитике
All checks were successful
Deploy / CreateImage (push) Successful in 6m45s
Deploy / DeployService (push) Successful in 23s

This commit is contained in:
Nastya 2025-05-20 16:22:17 +03:00
parent 4eda624080
commit c6cb130d5b

@ -83,11 +83,11 @@ const GeneralItem = ({
xAxis={[ xAxis={[
{ {
data: statiscticsResult ? days : Object.keys(general), data: statiscticsResult ? days : Object.keys(general),
valueFormatter: (value) => valueFormatter: (value) => {
moment.unix(Number(value)).format("DD/MM/YYYY HH") + const timestamp = Number(value);
statiscticsResult if (isNaN(timestamp)) return 'Invalid Date';
? "" return moment.unix(timestamp).format(statiscticsResult ? "DD/MM/YYYY" : "DD/MM/YYYY HH") + (statiscticsResult ? "" : "ч");
: "ч", },
}, },
]} ]}
series={[ series={[