Update realtime chart animation.

This commit is contained in:
Mike Cao 2020-10-09 11:14:42 -07:00
parent 5dd3110fbf
commit 0ccae7483c
2 changed files with 20 additions and 9 deletions

View file

@ -40,7 +40,7 @@ export default function BarChart({
switch (unit) {
case 'minute':
return dateFormat(d, 'h:mm', locale);
return index % 2 === 0 ? dateFormat(d, 'h:mm', locale) : '';
case 'hour':
return dateFormat(d, 'ha', locale);
case 'day':