1
0
Fork 0

Improved line width and time is always tp precission 3.

This commit is contained in:
Michael Hackstein 2015-04-27 11:58:33 -07:00
parent 9cd16832d5
commit a045cce27a
1 changed files with 4 additions and 4 deletions

View File

@ -318,7 +318,7 @@
var tempHTML = "";
tempHTML = "<b>Aggregation</b> - Flight distribution<br>" +
"Query needed: <b>" + (timeTaken/1000) + "sec" + "</b><br>" +
"Query needed: <b>" + (timeTaken/1000).toFixed(3) + " sec" + "</b><br>" +
"Number destinations: <b>" + list.length + "</b><br>" +
"Number flights: <b>" + allFlights + "</b><br>" +
"Top 5:<br>";
@ -384,7 +384,7 @@
var tempHTML = "";
tempHTML = "<b>" + airportData.get("Name").substr(0,25) + "</b> - " + airport + "<br>" +
"Query needed: <b>" + (timeTaken/1000) + "sec" + "</b><br>" +
"Query needed: <b>" + (timeTaken/1000).toFixed(3) + " sec" + "</b><br>" +
"Number destinations: <b>" + list.length + "</b><br>" +
"Number flights: <b>" + allFlights + "</b><br>" +
"Top 5:<br>";
@ -407,7 +407,7 @@
//var intervallWidth = length/2;
// return Math.floor(pos/intervallWidth) + 2;
//TODO: no custom width for lines wanted?
return 1.5;
return 2;
},
calculateFlightColor: function(length, pos) {
@ -542,7 +542,7 @@
}
var tempHTML = "";
tempHTML = "<b>Path</b> - Shortest Flight<br>" +
"Query needed: <b>" + (timeTaken/1000) + "sec" + "</b><br>" +
"Query needed: <b>" + (timeTaken/1000).toFixed(3) + " sec" + "</b><br>" +
"Number switches: <b>" + (vertices.length - 2) + "</b><br>" +
"Number flights: <b>" + list.edges.length + "</b><br>" +
"Airports:<br>";