mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-17 12:43:27 +01:00
Update chart.tsx
This commit is contained in:
@ -102,10 +102,21 @@ ${colorConfig
|
|||||||
|
|
||||||
const ChartTooltip = RechartsPrimitive.Tooltip
|
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<
|
const ChartTooltipContent = React.forwardRef<
|
||||||
HTMLDivElement,
|
HTMLDivElement,
|
||||||
React.ComponentProps<typeof RechartsPrimitive.Tooltip> &
|
Omit<React.ComponentProps<typeof RechartsPrimitive.Tooltip>, "content"> &
|
||||||
React.ComponentProps<"div"> & {
|
React.ComponentProps<"div"> & {
|
||||||
|
active?: boolean
|
||||||
|
payload?: TooltipPayloadItem[]
|
||||||
hideLabel?: boolean
|
hideLabel?: boolean
|
||||||
hideIndicator?: boolean
|
hideIndicator?: boolean
|
||||||
indicator?: "line" | "dot" | "dashed"
|
indicator?: "line" | "dot" | "dashed"
|
||||||
|
|||||||
Reference in New Issue
Block a user