mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-18 11:25:25 +01:00
feat: nivo graphs
This commit is contained in:
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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user