Commit ed3f1489 authored by David Schnur's avatar David Schnur

Always set the axis innermost property.

It doesn't make sense to calculate the innermost property only when no
tickLength has been provided; the two have little to do with each other.
parent 7f94a133
...@@ -32,7 +32,10 @@ ...@@ -32,7 +32,10 @@
position: position, position: position,
tickFormatter: euroFormatter tickFormatter: euroFormatter
} ], } ],
legend: { position: "sw" } legend: { position: "sw" },
grid: {
borderWidth: { top: 0, bottom: 1, left: 0, right: 0}
}
}); });
} }
......
...@@ -1395,13 +1395,15 @@ Licensed under the MIT license. ...@@ -1395,13 +1395,15 @@ Licensed under the MIT license.
if ($.inArray(axis, samePosition) == samePosition.length - 1) if ($.inArray(axis, samePosition) == samePosition.length - 1)
axisMargin = 0; // outermost axisMargin = 0; // outermost
// determine tick length - if we're innermost, we can use "full" // Determine whether the axis is the first (innermost) on its side
if (tickLength == null) {
var sameDirection = $.grep(all, function (a) { innermost = $.inArray(axis, $.grep(all, function (a) {
return a && a.reserveSpace; return a && a.reserveSpace;
}); })) == 0;
innermost = $.inArray(axis, sameDirection) == 0; // determine tick length - if we're innermost, we can use "full"
if (tickLength == null) {
if (innermost) if (innermost)
tickLength = "full"; tickLength = "full";
else else
......
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