Update realtime chart.

This commit is contained in:
Mike Cao committed 2020-10-08 23:26:05 -07:00
1 parent e64a555652
commit fdc92d087b
32 files changed
+240 -58

No files matched your search

+2
View File
@@ -39,6 +39,8 @@ export default function BarChart({
const w = canvas.current.width;
switch (unit) {
case 'minute':
return dateFormat(d, 'h:mm', locale);
case 'hour':
return dateFormat(d, 'ha', locale);
case 'day':