даты на general аналитике
This commit is contained in:
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={[
|
||||||
|
Loading…
Reference in New Issue
Block a user