Skip to content

Commit

Permalink
Fixed uneven spacing between stacked columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
highslide-software committed Aug 25, 2010
1 parent 591b832 commit ba43e34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/highcharts.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var doc = document,
math = Math,
mathRound = math.round,
mathFloor = math.floor,
mathCeil = math.ceil,
mathMax = math.max,
mathMin = math.min,
mathAbs = math.abs,
Expand Down Expand Up @@ -3889,7 +3890,7 @@ function Chart (options) {

var i,
roundedMin = mathFloor(min / tickInterval) * tickInterval,
roundedMax = math.ceil(max / tickInterval) * tickInterval;
roundedMax = mathCeil(max / tickInterval) * tickInterval;

tickPositions = [];

Expand Down Expand Up @@ -8082,9 +8083,9 @@ var ColumnSeries = extendClass(Series, {
each (data, function(point) {
var plotY = point.plotY,
barX = point.plotX + pointXOffset,
barY = mathMin(plotY, translatedThreshold),
barY = mathCeil(mathMin(plotY, translatedThreshold)),
barW = pointWidth,
barH = mathAbs((point.yBottom || translatedThreshold) - plotY),
barH = mathCeil(mathAbs((point.yBottom || translatedThreshold) - plotY)),
trackerY;

// handle options.minPointLength and tracker for small points
Expand Down

0 comments on commit ba43e34

Please sign in to comment.