Skip to content

Commit

Permalink
[charts] hidde empty arcs in pue chart
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Jul 19, 2024
1 parent cd1a16a commit d7e3573
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/x-charts/src/PieChart/PieArc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function PieArc(props: PieArcProps) {
outerRadius: oR,
})!,
)}
visibility={to([startAngle, endAngle], (sA, eA) => (sA === eA ? 'hidden' : 'visible'))}
onClick={onClick}
cursor={onClick ? 'pointer' : 'unset'}
ownerState={ownerState}
Expand Down

0 comments on commit d7e3573

Please sign in to comment.