Merge pull request #4 from xplorld/master

use d3.range instead of homebrew range
This commit is contained in:
Gasparina Damien 2017-12-11 15:04:04 +00:00 committed by GitHub
commit 7d59cac797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ function processCSV(csv, filename) {
}
} /* Use sequence for xAxis */
} else {
xValues = Array.apply(null, Array(nlines)).map(function (_, i) {return i;});
xValues = d3.range(nlines);
graphs.xAxis = function (xa) {
xa.axisLabel('').tickFormat(function(d) {
return d3.format('d')(d);