Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(chart): add margins to radar chart examples to prevent label cutoff
Closes #9948
  • Loading branch information
mahmoodhamdi committed Mar 29, 2026
commit 6362a7f2ec9a8ee3f80e181a3d5e9e3d385e1319
10 changes: 9 additions & 1 deletion apps/v4/registry/new-york-v4/charts/chart-radar-default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ export function ChartRadarDefault() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip cursor={false} content={<ChartTooltipContent />} />
<PolarAngleAxis dataKey="month" />
<PolarGrid />
Expand Down
10 changes: 9 additions & 1 deletion apps/v4/registry/new-york-v4/charts/chart-radar-dots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ export function ChartRadarDots() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip cursor={false} content={<ChartTooltipContent />} />
<PolarAngleAxis dataKey="month" />
<PolarGrid />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ export function ChartRadarGridCircleFill() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip cursor={false} content={<ChartTooltipContent />} />
<PolarGrid
className="fill-(--color-desktop) opacity-20"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ export function ChartRadarGridCircleNoLines() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent hideLabel />}
Expand Down
10 changes: 9 additions & 1 deletion apps/v4/registry/new-york-v4/charts/chart-radar-grid-circle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ export function ChartRadarGridCircle() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent hideLabel />}
Expand Down
10 changes: 9 additions & 1 deletion apps/v4/registry/new-york-v4/charts/chart-radar-grid-custom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ export function ChartRadarGridCustom() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent hideLabel />}
Expand Down
10 changes: 9 additions & 1 deletion apps/v4/registry/new-york-v4/charts/chart-radar-grid-fill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ export function ChartRadarGridFill() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent hideLabel />}
Expand Down
10 changes: 9 additions & 1 deletion apps/v4/registry/new-york-v4/charts/chart-radar-grid-none.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ export function ChartRadarGridNone() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent hideLabel />}
Expand Down
10 changes: 9 additions & 1 deletion apps/v4/registry/new-york-v4/charts/chart-radar-lines-only.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ export function ChartRadarLinesOnly() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent indicator="line" />}
Expand Down
10 changes: 9 additions & 1 deletion apps/v4/registry/new-york-v4/charts/chart-radar-multiple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ export function ChartRadarMultiple() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent indicator="line" />}
Expand Down
10 changes: 9 additions & 1 deletion apps/v4/registry/new-york-v4/charts/chart-radar-radius.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,15 @@ export function ChartRadarRadius() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart data={chartData}>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip
cursor={false}
content={
Expand Down