Skip to content

Commit

Permalink
See DmitryBaranovskiy#137: Some minor changes to allow for customized…
Browse files Browse the repository at this point in the history
… x axis.
  • Loading branch information
bigspotteddog committed Jul 7, 2012
1 parent bfaaf65 commit 2cec9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions g.line.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@

var allx = Array.prototype.concat.apply([], valuesx);
var ally = Array.prototype.concat.apply([], valuesy);
var minx = opts.minx || Math.floor(Math.min.apply(Math, allx) - 1);
var maxx = opts.maxx || Math.ceil(Math.max.apply(Math, allx) + 1);
var minx = opts.minx || Math.floor(Math.min.apply(Math, allx));
var maxx = opts.maxx || Math.ceil(Math.max.apply(Math, allx));
var miny = opts.miny || Math.floor(Math.min.apply(Math, ally) - 1);
var maxy = opts.maxy || Math.ceil(Math.max.apply(Math, ally) + 1);
var kx = (width - gutter * 2) / ((maxx - minx) || 1);
Expand Down

0 comments on commit 2cec9d3

Please sign in to comment.