C3: Feature request: Rounded corners for bar chart

Created on 15 Nov 2017  ·  3Comments  ·  Source: c3js/c3

Because C3 uses path elements to draw the bars in a bar chart, it would be great to have some option to have rounded corners, because otherwise it'd have to be done with D3 separately after the chart has rendered.

Most helpful comment

Thank you for the link, however since that's basically hijacking the c3 path drawing functionality, then isn't that almost a complete pull request.
So instead of having to do it in a 'hacky' way, it'd be better to include this and optimize it where necessary

All 3 comments

Here's how it's done using SVG properties - http://jsfiddle.net/5hzxegxx/2/

Thank you for the link, however since that's basically hijacking the c3 path drawing functionality, then isn't that almost a complete pull request.
So instead of having to do it in a 'hacky' way, it'd be better to include this and optimize it where necessary

Anyway to additionally add in stacked bar charts to that. It seems like the example only handles only bar charts and only positive numbers.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seubert picture seubert  ·  3Comments

zachallia picture zachallia  ·  3Comments

Saikat-Sinha picture Saikat-Sinha  ·  3Comments

mwho picture mwho  ·  3Comments

unlight picture unlight  ·  3Comments