Realtime header component.

This commit is contained in:
Mike Cao committed 2020-10-09 17:58:27 -07:00
1 parent 69b317386a
commit e30f2dfb44
34 files changed
+167 -177

No files matched your search

+4 -4
View File
@@ -5,17 +5,17 @@ import ChartJS from 'chart.js';
import { formatLongNumber } from 'lib/format';
import { dateFormat } from 'lib/lang';
import useLocale from 'hooks/useLocale';
import styles from './BarChart.module.css';
import useTheme from 'hooks/useTheme';
import { THEME_COLORS } from 'lib/constants';
import { DEFAUL_CHART_HEIGHT, DEFAULT_ANIMATION_DURATION, THEME_COLORS } from 'lib/constants';
import styles from './BarChart.module.css';
export default function BarChart({
chartId,
datasets,
unit,
records,
height = 400,
animationDuration = 300,
height = DEFAUL_CHART_HEIGHT,
animationDuration = DEFAULT_ANIMATION_DURATION,
className,
stacked = false,
loading = false,