[]
+ height?: number
+ xDataKey?: string
+ xType?: 'number' | 'category'
+ xTickFormatter?: (value: any) => string
+ yTickFormatter?: (value: any) => string
+ yLabel?: string
+ children: React.ReactNode
+ className?: string
+}
+
+export function ThemedChart({
+ data,
+ height = 200,
+ xDataKey = 'time',
+ xType = 'category',
+ xTickFormatter,
+ yTickFormatter,
+ yLabel,
+ children,
+ className,
+}: ThemedChartProps) {
+ if (!data.length) {
+ return null
+ }
+
+ return (
+
+
+
+
+
+
+ } cursor={rechartsTheme.tooltip.cursor} />
+ {children}
+
+
+
+ )
+}