gwatts / jquery.sparkline

A plugin for the jQuery javascript library to generate small sparkline charts directly in the browser
http://omnipotent.net/jquery.sparkline/
1.24k stars 278 forks source link

Stacked bar partially displayed #73

Open galwa opened 11 years ago

galwa commented 11 years ago

See attached fiddle http://jsfiddle.net/huQ43/12/

Tried changing the Min\Max ranges same behavior

galwa commented 11 years ago

I think I found the source.

In bar charts init: ---78 : stackRanges[i] += Math.abs(val - (val < 0 ? stackMax : stackMin));

results in diminished active range -> active range should be for positive numbers sum of values and for combined negative values absulute sum +++78 : stackRanges[i] +=val; solves it