Update realtime chart animation.

This commit is contained in:
Mike Cao committed 2020-10-09 11:14:42 -07:00
1 parent 5dd3110fbf
commit 0ccae7483c
2 files changed
+20 -9

No files matched your search

+1 -1
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':