feat: nivo graphs

This commit is contained in:
TrèsAbhi committed 2024-10-22 15:08:23 -05:00
1 parent f2da3994e4
commit 5e6f0e5d18
13 files changed
+157 -364

No files matched your search

@@ -0,0 +1,18 @@
import {
ResponsiveBar,
type BarDatum,
type ResponsiveBarSvgProps,
} from '@nivo/bar';
import { nivoTheme } from '../../core/nivo/theme';
export function ThemedBar<RawDatum extends BarDatum>(
props: ResponsiveBarSvgProps<RawDatum>,
) {
return (
<ResponsiveBar
colors={{ scheme: 'yellow_green_blue' }}
theme={nivoTheme}
{...props}
/>
);
}