Commit 6b1971ed authored by olau@iola.dk's avatar olau@iola.dk

Fixed a bug with line widths of bars

git-svn-id: https://flot.googlecode.com/svn/trunk@72 1e0a6537-2640-0410-bfb7-f154510ff394
parent 09b37caf
......@@ -25,7 +25,8 @@ timothytoe). Fixed a bug in finding max values for all-negative data
sets. Prevent the possibility of eternal looping in tick calculations.
Fixed a bug when borderWidth is set to 0 (reported by
Rob/sanchothefat). Fixed a bug with drawing bars extending below 0
(reported by James Hewitt, convenient patch by Ryan Funduk).
(reported by James Hewitt, convenient patch by Ryan Funduk). Fixed a
bug with line widths of bars (reported by MikeM).
Flot 0.4
......
......@@ -1274,10 +1274,10 @@
ctx.translate(plotOffset.left, plotOffset.top);
ctx.lineJoin = "round";
var bw = series.bars.barWidth;
var lw = Math.min(series.bars.lineWidth, bw);
// FIXME: figure out a way to add shadows
/*
var bw = series.bars.barWidth;
var lw = series.bars.lineWidth;
var sw = series.shadowSize;
if (sw > 0) {
// draw shadow in two steps
......@@ -1290,10 +1290,10 @@
plotBars(series.data, bw, lw/2 + ctx.lineWidth/2, false);
}*/
ctx.lineWidth = lw;
ctx.lineWidth = series.bars.lineWidth;
ctx.strokeStyle = series.color;
setFillStyle(series.bars, series.color);
plotBars(series.data, bw, 0, series.bars.fill);
plotBars(series.data, series.bars.barWidth, 0, series.bars.fill);
ctx.restore();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment