Victory: Add cornerRadius prop for `VictoryBar`

Created on 9 Aug 2017  路  2Comments  路  Source: FormidableLabs/victory

Is possible Corner Rounded in Victory Bar?

Most helpful comment

Drive-by comment. I currently have no use for this, but if I did, I imagine would only want the top corners rounded for positive values and the bottom corners rounded for negative values. There would also be the case of a stacked graph to consider (and possibly ignore) where the interior bars stay square and the exterior one gets rounded.

All 2 comments

right now there isn't a simple way to make rounded bars, but you can hack something together with styles. Try adding strokeLinejoin: "round", strokeWidth: 6 to your bar styles. I'll also look into adding a cornerRadius prop for VictoryBar

Drive-by comment. I currently have no use for this, but if I did, I imagine would only want the top corners rounded for positive values and the bottom corners rounded for negative values. There would also be the case of a stacked graph to consider (and possibly ignore) where the interior bars stay square and the exterior one gets rounded.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

purplecones picture purplecones  路  3Comments

robinwkurtz picture robinwkurtz  路  3Comments

iffy picture iffy  路  5Comments

captDaylight picture captDaylight  路  5Comments

AndresTIY picture AndresTIY  路  5Comments