c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Question about stacked bars with same height

Open glena opened this issue 12 years ago • 2 comments

Hi,

I need to make a graph of stacked bars. I made this based on this example (http://c3js.org/samples/chart_bar_stacked.html) but I need to show the bars with the same height to make clear the proportionality of the sections of the bar.

Like this for example:

Example

I cant find the way to do this without change the value of my data (I can process the values to be shown as a percentage for each bar so all of them will go from 0 to 100 but I dont want to loose the real value of it in the tooltip).

Thanks

glena avatar Nov 27 '14 18:11 glena

I think it is relates to the issue #142 but no feedback since 10 Apr.

Did you have time to work on this?

If not, is there any workaround?

Great work do far anyway :) really appreciate your effort with this great library.

glena avatar Nov 27 '14 18:11 glena

Sorry currently not. Please construct the data by yourself before it's loaded. And I think axis.y.max and axis.y.min and axis.y.padding would be useful to draw this kind of chart (it removes the space of top and bottom of y axis). Please let me close this issue because this is a duplicate of #142 as you said. I'll work on this after complete the documentation and the bug fix. It would be v0.5 or more.

masayuki0812 avatar Nov 30 '14 19:11 masayuki0812