c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Normalized Stacked Chart

Open lblb opened this issue 12 years ago • 15 comments

Hi Masayuki, I was looking for a way to implement stacked chart expressed as percentages, similar to this example: http://bl.ocks.org/mbostock/3886394 However I was overwhelmed by so many intermediate steps you are using to calculate Y offset and height of bars. I'm confused so far... A quick and dirty way to do this is to normalize data before drawing chart and then set Y range to 0-100%. However this is not suitable as I need to present both percentages and original values in labels on chart and in tooltips. The same normalization should be also applicable to area charts. Please advice what would be the best way to go and I'll be glad to contribute.

lblb avatar Apr 09 '14 20:04 lblb

HI @lblb , I think it is impossible to get each value if data is normalized because each data does not have original value any more. So, we need to implement this as new feature.

I think normarlized stacked chart should be implemented and I agree to add. Could you give me some time? I'll work on this in few days.

masayuki0812 avatar Apr 10 '14 03:04 masayuki0812

This sounds like a good candidate for a plugin idea. Alas, until #351 is complete, that is not possible. Adding on hold and closing, will reopen once plugin infrastructure is in place.

aendra-rininsland avatar Dec 17 '14 14:12 aendra-rininsland

Reopening after discussion with @masayuki0812 re: how to handle on hold issues.

aendra-rininsland avatar Dec 25 '14 13:12 aendra-rininsland

+1 would be very helpful

mapgiordani avatar Apr 11 '16 17:04 mapgiordani

+1

scottjason avatar Apr 16 '16 00:04 scottjason

Any update on the ability to built Normalized Stack Bar Chart using c3.js

carlosJack avatar Jun 10 '16 13:06 carlosJack

+100

phantasma2983 avatar Mar 14 '17 09:03 phantasma2983

+1

ataft avatar Sep 01 '17 18:09 ataft

+1

ahmednoureldeen avatar Sep 08 '17 06:09 ahmednoureldeen

Any new updates here?

crauliuc avatar Oct 23 '17 12:10 crauliuc

Came here to say +1. Status?

dmurphy779 avatar Jun 03 '18 04:06 dmurphy779

+1? :)

mattbloomfield avatar Jun 22 '18 17:06 mattbloomfield

new updates?

artemanufrij avatar Aug 31 '18 14:08 artemanufrij

+1, both Normalized Stacked Bar Chart and Normalized Stacked Area Chart.

mia0x75 avatar Sep 25 '18 08:09 mia0x75

+1

Code7Bit avatar Mar 05 '20 06:03 Code7Bit