Open subk opened 2 weeks ago
I duplicated the component in the <clip-path />
and it seems the error come from FF that do not apply the clip-path
attribute of the rectangle when clipping the staked bars
Here is in red the the content of <clip-path />
. As you can see the clip-path: inset(0px round 10px);
rule is respected.
But not when using this shape as a clip-path.
A workaround could be to define this shape with a <path />
As a workaround I was using a clip-path
on the bar
slot :
// example
<BarPlot
slotProps={{
bar: { clipPath: `inset(0px round 5px 5px 0px 0px)` },
}}
/>
Note that it will not work for stacked bar chart
Steps to reproduce
Link to live example: https://mui.com/x/react-charts/bars/#border-radius
borderRadius
property of<BarPlot />
is not working in Firefox. SVGclip-path
looks correct but is ignored by FF.Current behavior
Firefox Developer Edition 131.0b8 (64-bit)
Firefox ESR 115.15.0esr
Expected behavior
Using Chrome Version 129.0.6668.58 (64 bits)
Context
No response
Your environment
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```npx @mui/envinfo
Search keywords: barchart, borderRadius, firefox