Commit 360e57dc authored by David Schnur's avatar David Schnur

Minor cleanup on recently-merged code, for consistency.

parent e7634c64
...@@ -671,17 +671,17 @@ ...@@ -671,17 +671,17 @@
var delta; var delta;
switch (s.bars.align) { switch (s.bars.align) {
case 'left': case "left":
delta = 0; delta = 0;
break; break;
case 'right': case "right":
delta = -s.bars.barWidth; delta = -s.bars.barWidth;
break; break;
case 'center': case "center":
delta = -s.bars.barWidth / 2; delta = -s.bars.barWidth / 2;
break; break;
default: default:
throw 'Invalid bar alignment: ' + s.bars.align; throw new Error("Invalid bar alignment: " + s.bars.align);
} }
if (s.bars.horizontal) { if (s.bars.horizontal) {
...@@ -2229,17 +2229,17 @@ ...@@ -2229,17 +2229,17 @@
var barLeft; var barLeft;
switch (series.bars.align) { switch (series.bars.align) {
case 'left': case "left":
barLeft = 0; barLeft = 0;
break; break;
case 'right': case "right":
barLeft = -series.bars.barWidth; barLeft = -series.bars.barWidth;
break; break;
case 'center': case "center":
barLeft = -series.bars.barWidth / 2; barLeft = -series.bars.barWidth / 2;
break; break;
default: default:
throw 'Invalid bar alignment: ' + series.bars.align; throw new Error("Invalid bar alignment: " + series.bars.align);
} }
var fillStyleCallback = series.bars.fill ? function (bottom, top) { return getFillStyle(series.bars, series.color, bottom, top); } : null; var fillStyleCallback = series.bars.fill ? function (bottom, top) { return getFillStyle(series.bars, series.color, bottom, top); } : null;
......
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