React-native-svg-charts: bar chart rounded top

Created on 8 Aug 2018  路  13Comments  路  Source: JesperLekland/react-native-svg-charts

is it possible to have rounded top left and right corners on a bar chart?

feature request

Most helpful comment

@antoinerousseau maybe, would have to clean up the code quite a bit.

@JesperLekland Are you interested in a PR that adds an API for rounded corners to BarChart and StackedBarChart?

All 13 comments

Doubtful, @raygerrard

(based on this comment)

@vjsingh could you make a PR maybe?

@antoinerousseau maybe, would have to clean up the code quite a bit.

@JesperLekland Are you interested in a PR that adds an API for rounded corners to BarChart and StackedBarChart?

and maybe the path can be replaced by a Rect for simpler code?

In my consideration of this feature I would definitely use Rect. Would be very interested in a PR 馃憤

@vjsingh Thanks for the offer, but that implementation is unfortunately way too complex. Cool solution though 馃憤

@JesperLekland Thanks, it's a bit hacked together. I didn't think anyone would ever see this code =)

I can make a PR. The issue is, is there a way to only round some of the corners with Rect? That was the motivation, since rounding all the bars in a stacked bar chart it doesn't look good. We could of course hide the complexity behind our own Rect abstraction

Hello is there any progress on rounding the top corners in the BarChart?

Hi Guys,
Anybody working on this ?

Anybody working on this ?

Yep, I'd be very interested in rounded corners (even bottom corners) for BarChart. Unfortunately, I don't have time to work on some PR. Maybe I'll try to dig a bit into the lib to see what I can do.

I moved over to Victory charts, been a lot happier with that library. It's better maintained I think.

Was this page helpful?
0 / 5 - 0 ratings