victory icon indicating copy to clipboard operation
victory copied to clipboard

VictoryBar cornerRadius callback does not support top/bottom object

Open mordechaim opened this issue 1 year ago • 1 comments

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

mordechaim avatar Aug 02 '22 20:08 mordechaim

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
}}

mordechaim avatar Aug 02 '22 20:08 mordechaim