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

Minor cleanup on recently-merged code, for consistency.

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