Closed JCQuintas closed 1 week ago
Deploy preview: https://deploy-preview-12859--material-ui-x.netlify.app/
Updated pages:
Generated by :no_entry_sign: dangerJS against ffbe421e96b7bb20232dbf314181c36c42b3f0ee
what if we have stacking series? how will that case be handeled?
what if we have stacking series? how will that case be handeled?
Right now it would apply the inset on every one of the items in the stack. So it wouldn't look very good.
Is adding border radius to a stacking bar chart important to you? We thought about documenting this workaround while we gather more info on this. Can you explain why it is important?
what if we have stacking series? how will that case be handeled?
Right now it would apply the inset on every one of the items in the stack. So it wouldn't look very good.
Is adding border radius to a stacking bar chart important to you? We thought about documenting this workaround while we gather more info on this. Can you explain why it is important?
yes, as i was working one of my projects that required this particular design!
It can work for stacking if you do not dynamically compute the stacking order and will be broken if the top bar has 0 height
https://codesandbox.io/p/sandbox/confident-danny-c7nsz2?file=%2Fsrc%2FDemo.tsx%3A8%2C16
Looks pretty nice
If we were able to provide
isExtremum
andvalue
to theownerState
we could support stacking the same way 🤔
I already have a working POC at https://github.com/mui/mui-x/pull/12834
needs cleanup and adjustments though
As @alexfauquette suggested on the previous PR in order to provide a quick alternative to borderRadius on bar charts, we can simply use css'
clipPath
property, which should be enough for most regular cases.@alexfauquette not sure this "resolves" the issue at #12220, what do you think?
https://deploy-preview-12859--material-ui-x.netlify.app/x/react-charts/bars/#border-radius