-
-
{formatMessage(labels.date)}
-
{formatMessage(labels.visitors)}
- {days.map(n => (
-
+
+
+
+ {formatMessage(labels.cohort)}
+
+ {days.map(n => (
+
+
{formatMessage(labels.day)} {n}
-
- ))}
-
- {rows.map(({ date, visitors, records }, rowIndex) => {
- return (
-
-
{formatDate(date, 'PP', locale)}
-
{visitors}
- {days.map(day => {
- if (totalDays - rowIndex < day) {
- return null;
- }
- const percentage = records.filter(a => a.day === day)[0]?.percentage;
- return
{percentage ? `${Number(percentage).toFixed(2)}%` : ''}
;
- })}
-
- );
- })}
-
- >
+
+