victory
victory copied to clipboard
VictoryBar cornerRadius callback does not support top/bottom object
https://github.com/FormidableLabs/victory/blob/09c80335ddb520b327991d6a7e5b3bfc49ebcbf5/packages/victory-bar/src/bar-helper-methods.js#L60-L61
The callback variant of the VictoryBar cornerRadius
only supports a number that is applied as topLeft and topRight
FWIW I just figured out a workaround: Return an object for the corners and pass the functions there.
cornerRadius={{
top: d => d.barWidth / 2,
bottom: d => d.barWidth / 2
}}