Initial commit

Load this up somewhere where I can setup CI/CD
This commit is contained in:
2024-01-24 13:05:19 -05:00
commit 7119957c9e
458 changed files with 10153 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
import {
Chart as ChartJS,
CategoryScale,
LinearScale,
BarElement,
Title,
Tooltip,
Legend,
ChartData,
ChartOptions,
} from 'chart.js';
import { Bar } from 'react-chartjs-2';
import styles from './BarChart.module.scss';
ChartJS.register(
CategoryScale,
LinearScale,
BarElement,
Title,
Tooltip,
Legend
);
interface BarChartOpts {
className?: string;
data: ChartData<"bar">;
opts: ChartOptions<"bar">;
title?: string;
}
export function BarChart({ className, data, opts, title }: BarChartOpts) {
return (
<div className={className}>
{title && <h2 className={styles.title}>{title}</h2>}
<Bar data={data} options={opts} />
</div>
);
}