diff --git a/var/www/templates/correlation/show_correlation.html b/var/www/templates/correlation/show_correlation.html
index d99b2d1f..e0c5d6b3 100644
--- a/var/www/templates/correlation/show_correlation.html
+++ b/var/www/templates/correlation/show_correlation.html
@@ -116,10 +116,29 @@
+
+
+ Loading...
+
+
Loading...
+
+
+
+
+
+ Hello, world! This is a toast message.
+
+
+
@@ -283,6 +302,9 @@ var zoom = d3.zoom()
.scaleExtent([.2, 10])
.on("zoom", zoomed);
+// Loading:
+//$("#graph_loading").show()
+
//var transform = d3.zoomIdentity;
var color = d3.scaleOrdinal(d3.schemeCategory10);
@@ -308,6 +330,7 @@ var container_graph = svg_node.append("g");
//.attr("transform", "translate(40,0)")
//.attr("transform", "scale(2)");
+
function create_graph(url){
d3.json(url)
@@ -384,7 +407,16 @@ d3.json(url)
node.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; });
}
-});
+ // Loading ...
+ $("#graph_loading").remove();
+
+})
+.catch(function(error) {
+ $("#graph_loading").remove()
+ svg_node.remove();
+ d3.select("#graph").append("div")
+ .text(error);
+ });
}
function zoomed() {