use d3.range instead of homebrew range, fix stack overflow in large input
This commit is contained in:
parent
8a37519e61
commit
5c0538b5e3
@ -192,7 +192,7 @@ function processCSV(csv, filename) {
|
|||||||
}
|
}
|
||||||
} /* Use sequence for xAxis */
|
} /* Use sequence for xAxis */
|
||||||
} else {
|
} else {
|
||||||
xValues = Array.apply(null, Array(nlines)).map(function (_, i) {return i;});
|
xValues = d3.range(nlines);
|
||||||
graphs.xAxis = function (xa) {
|
graphs.xAxis = function (xa) {
|
||||||
xa.axisLabel('').tickFormat(function(d) {
|
xa.axisLabel('').tickFormat(function(d) {
|
||||||
return d3.format('d')(d);
|
return d3.format('d')(d);
|
||||||
|
Loading…
Reference in New Issue
Block a user