Skip to content
Snippets Groups Projects
Commit 230461ef authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix (unnecessary) hangup on crunching graph plot data

parent 15252d56
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,6 @@ span.label { ...@@ -137,7 +137,6 @@ span.label {
smtimes = Array.prototype.concat.apply([], json.times), smtimes = Array.prototype.concat.apply([], json.times),
plots = [], plots = [],
max = 0, max = 0,
steps = 0,
primes = [2,3,5,7,9]; primes = [2,3,5,7,9];
// Convert the timestamp to number of whole days after the // Convert the timestamp to number of whole days after the
...@@ -147,15 +146,6 @@ span.label { ...@@ -147,15 +146,6 @@ span.label {
for (key in smtimes) { for (key in smtimes) {
smtimes[key] = Math.floor(smtimes[key] / 86400); smtimes[key] = Math.floor(smtimes[key] / 86400);
} }
steps = smtimes[smtimes.length-1] - smtimes[0] + 1;
while (steps > 12) {
for (var i in primes) {
if (steps % primes[i] === 0) {
steps /= primes[i];
break;
}
}
}
for (key in json.events) { for (key in json.events) {
e = json.events[key]; e = json.events[key];
if (json.plots[e] === undefined) continue; if (json.plots[e] === undefined) continue;
...@@ -174,7 +164,7 @@ span.label { ...@@ -174,7 +164,7 @@ span.label {
nostroke: false, nostroke: false,
shade: false, shade: false,
axis: "0 0 1 1", axis: "0 0 1 1",
axisxstep: steps, axisxstep: 8,
axisystep: max, axisystep: max,
symbol: "circle", symbol: "circle",
smooth: false smooth: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment