diff --git a/components/ui/chart.tsx b/components/ui/chart.tsx index 1f5cbfe..c48ea03 100644 --- a/components/ui/chart.tsx +++ b/components/ui/chart.tsx @@ -164,12 +164,19 @@ const ChartTooltipContent = React.forwardRef<
- {!nestLabel ? tooltipLabel : null} -
+ {!nestLabel && ( +

{!nestLabel ? tooltipLabel : null}

+ )} + +
{payload.map((item, index) => { const key = `${nameKey || item.name || item.dataKey || "value"}` const itemConfig = getPayloadConfigFromPayload(config, item, key)