Commit 14651f7f authored by David Schnur's avatar David Schnur

Merge pull request #1091 from markrcote/master

Always remove the tick text in drawAxisLabels() regardless of axis settings
parents 81926d03 5a037215
...@@ -2100,9 +2100,6 @@ Licensed under the MIT license. ...@@ -2100,9 +2100,6 @@ Licensed under the MIT license.
function drawAxisLabels() { function drawAxisLabels() {
$.each(allAxes(), function (_, axis) { $.each(allAxes(), function (_, axis) {
if (!axis.show || axis.ticks.length == 0)
return;
var box = axis.box, var box = axis.box,
legacyStyles = axis.direction + "Axis " + axis.direction + axis.n + "Axis", legacyStyles = axis.direction + "Axis " + axis.direction + axis.n + "Axis",
layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis " + legacyStyles, layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis " + legacyStyles,
...@@ -2111,6 +2108,9 @@ Licensed under the MIT license. ...@@ -2111,6 +2108,9 @@ Licensed under the MIT license.
surface.removeText(layer); surface.removeText(layer);
if (!axis.show || axis.ticks.length == 0)
return;
for (var i = 0; i < axis.ticks.length; ++i) { for (var i = 0; i < axis.ticks.length; ++i) {
tick = axis.ticks[i]; tick = axis.ticks[i];
......
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