Skip to content

Commit

Permalink
Remove spurious x axis labels when axis bounds set
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kleppmann committed May 5, 2009
1 parent f478264 commit 7723e4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PlotKit/Layout.js
Expand Up @@ -638,7 +638,9 @@ PlotKit.Layout.prototype._evaluateLineTicksForXAxis = function() {
var pos = this.xscale * (xvalues[i] - this.minxval); var pos = this.xscale * (xvalues[i] - this.minxval);
// FIXME take xTickPrecision option into account? // FIXME take xTickPrecision option into account?
//this.xticks.push([pos, MochiKit.Format.roundToFixed(xvalues[i], prec)]); //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 { } else {
Expand Down

0 comments on commit 7723e4b

Please sign in to comment.