New event data screen.

This commit is contained in:
Mike Cao 2024-08-09 01:09:54 -07:00
parent 10c438d1de
commit 8ee37d1246
137 changed files with 4918 additions and 321 deletions

View file

@ -9,7 +9,7 @@ export interface PieChartProps extends ChartProps {
export default function PieChart(props: PieChartProps) {
const [tooltip, setTooltip] = useState(null);
const { type } = props;
const { type = 'pie' } = props;
const handleTooltip = ({ tooltip }) => {
const { labelColors, dataPoints } = tooltip;
@ -23,5 +23,5 @@ export default function PieChart(props: PieChartProps) {
);
};
return <Chart {...props} type={type || 'pie'} tooltip={tooltip} onTooltip={handleTooltip} />;
return <Chart {...props} type={type} tooltip={tooltip} onTooltip={handleTooltip} />;
}