Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove spurious x axis labels when axis bounds set

  • Loading branch information...
commit 7723e4bcf51788ce75ce0ab63fc9aea4d05d1154 1 parent f478264
Martin Kleppmann authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 PlotKit/Layout.js
View
4 PlotKit/Layout.js
@@ -638,7 +638,9 @@ PlotKit.Layout.prototype._evaluateLineTicksForXAxis = function() {
var pos = this.xscale * (xvalues[i] - this.minxval);
// FIXME take xTickPrecision option into account?
//this.xticks.push([pos, MochiKit.Format.roundToFixed(xvalues[i], prec)]);
- this.xticks.push([pos, xvalues[i]]);
+ if ((pos >= 0) && (pos <= 1)) {
+ this.xticks.push([pos, xvalues[i]]);
+ }
}
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.