fix: show year instead of epoch

This commit is contained in:
Aitor Alonso 2023-05-16 21:02:56 +02:00
parent 586529a5ca
commit 2b5429aa1f
No known key found for this signature in database
GPG Key ID: 96D85952EE1373E6

View File

@ -52,6 +52,8 @@ export function BarChart({
return dateFormat(d, 'MMM d', locale);
case 'month':
return dateFormat(d, 'MMM', locale);
case 'year':
return dateFormat(d, 'YYY', locale);
default:
return label;
}