даты на 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={[
{
data: statiscticsResult ? days : Object.keys(general),
valueFormatter: (value) =>
moment.unix(Number(value)).format("DD/MM/YYYY HH") +
statiscticsResult
? ""
: "ч",
valueFormatter: (value) => {
const timestamp = Number(value);
if (isNaN(timestamp)) return 'Invalid Date';
return moment.unix(timestamp).format(statiscticsResult ? "DD/MM/YYYY" : "DD/MM/YYYY HH") + (statiscticsResult ? "" : "ч");
},
},
]}
series={[