c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.34k stars 1.39k forks source link

Overlay bar charts #2035

Open bthallion opened 7 years ago

bthallion commented 7 years ago

Is it possible to overlay two bar graphs, rather than stacking them on top of one another in a group?

jace commented 7 years ago

This is a layered bar chart, as in this example. https://www.amcharts.com/demos/layered-column-chart/

I'd love this functionality as well. It works for visualising the stages of a funnel (as bars) over time (as X axis).

ralphking commented 7 years ago

Has anyone worked this out? I need to overlay two bar charts like so:

screen shot 2017-08-04 at 11 56 13

h4 commented 6 years ago

It will be possible by overloading getShapeX() internal method and extending config.

You may see that simple example: http://jsfiddle.net/h404/xg6z4sd3/ Of course, it will be better to create plugin.