niucang / gchartrb

Automatically exported from code.google.com/p/gchartrb
0 stars 0 forks source link

Stacked Bar Graphs Overflow Chart #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a stacked bar graph
2. Add several data sets with text encoding (ex: [60,80,20] and [50,5,100] as 
datasets)
3. View the results

What is the expected output? What do you see instead?

The sets are "normalized" to 100 individually, so when the stacks are added 
together they blow off 
the page.  When the bar graph is in stacked mode, the normalization needs to be 
based off the sum 
of all data sets, not just the largest value of each dataset.

Original issue reported on code.google.com by casimir....@gmail.com on 19 Dec 2007 at 7:25

GoogleCodeExporter commented 8 years ago
Thanks. I had a feeling there was something wrong with my stacked chart 
implementation. Never looked at it intently.

Thanks for pointing me in the right direction. Will fix ASAP

Original comment by deepak.j...@gmail.com on 20 Dec 2007 at 2:39

GoogleCodeExporter commented 8 years ago
Great!  Let me know if I can help in testing.

For both stacked and normal bar graphs, it would be nice if you could have a
normalizing parameter.  Like, say I'm creating three separate graphs and the max
values are 70, 80, and 90 respectively.  For visual comparison I would want 
them to
have the same scale.  It would be nice if I could specify "90" as the scaling 
target
for all three.  If the parameter is not set, then it would automatically 
normalize to
the max value in that graph's dataset (as it does now).  Does that make sense?

Original comment by casimir....@gmail.com on 20 Dec 2007 at 3:09

GoogleCodeExporter commented 8 years ago
This is fixed in trunk now. I calculate the max value now by summing the 
respective 
numbers in each series and then calculating the max of the sum.

Should be releasing a new version with this and other fixes

Original comment by deepak.j...@gmail.com on 20 Dec 2007 at 3:11