Skip to content

Conversation

mxkaske
Copy link

@mxkaske mxkaske commented Aug 26, 2025

Recharts supports legendType="none" and tooltipType="none" on different chart types. The following changes allow us to define which keys are supported in ChartTooltipContent and ChartLegendContent.

Simply adding payload.filter((item) => item.type !== "none") before mapping over it.

The legendType is well documented whereas the tooltipType isn't (while still valid recharts property).

<Area
  dataKey="error"
  stroke="var(--color-error)"
  // NOTE: hides the dataKey "error" from the `ChartTooltipContent` and `ChartLegendContent`
  legendType="none"
  tooltipType="none"
/>

Copy link

vercel bot commented Aug 26, 2025

@mxkaske is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Aug 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ui Ready Ready Preview Comment Aug 31, 2025 10:29am

@@ -1071,7 +1071,7 @@ const SheetContent = React.forwardRef<
{...props}
>
{children}
<SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none">
Copy link
Author

@mxkaske mxkaske Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shadcn pnpm format:check failing due to the following class name reorder - should be ok now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants