Merge pull request #2043 from tairosonloa/fix/gui-events-date-all-time
Fix: `BarChar` to correctly show year instead of epoch when unit is yearpull/2065/head
commit
6abffe3e4b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue