mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-16 20:23:32 +01:00
Update chart.tsx
This commit is contained in:
@ -102,10 +102,21 @@ ${colorConfig
|
||||
|
||||
const ChartTooltip = RechartsPrimitive.Tooltip
|
||||
|
||||
type TooltipPayloadItem = {
|
||||
value?: string | number
|
||||
name?: string
|
||||
dataKey?: string | number
|
||||
payload?: Record<string, unknown>
|
||||
color?: string
|
||||
fill?: string
|
||||
}
|
||||
|
||||
const ChartTooltipContent = React.forwardRef<
|
||||
HTMLDivElement,
|
||||
React.ComponentProps<typeof RechartsPrimitive.Tooltip> &
|
||||
Omit<React.ComponentProps<typeof RechartsPrimitive.Tooltip>, "content"> &
|
||||
React.ComponentProps<"div"> & {
|
||||
active?: boolean
|
||||
payload?: TooltipPayloadItem[]
|
||||
hideLabel?: boolean
|
||||
hideIndicator?: boolean
|
||||
indicator?: "line" | "dot" | "dashed"
|
||||
|
||||
Reference in New Issue
Block a user