From 2c999f4cb4bf27bb159c84dae9853a43f2858f7e Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Wed, 23 Apr 2014 20:14:16 -0700 Subject: [PATCH] loading message in historical tab --- .../admin/dashboard/hpc_historical.html | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/planetstack/templates/admin/dashboard/hpc_historical.html b/planetstack/templates/admin/dashboard/hpc_historical.html index 8f0702f..e312ee9 100644 --- a/planetstack/templates/admin/dashboard/hpc_historical.html +++ b/planetstack/templates/admin/dashboard/hpc_historical.html @@ -21,6 +21,13 @@ function updateDataSourceUrl() { var sliceName = $("#historical_slicename :selected").text(); var queryString = "/analytics/bigquery/?timeBucket=600&maxAge=86400&sum=@bytes_sent&avg=@cpu&groupBy=Time,city,@hostname,@site&slice=" + sliceName; + var loadingDiv = '
Loading ...
'; + + $( "#control1").html(""); + $( "#control2").html(""); + $( "#chart-site-agg" ).html(loadingDiv); + $( "#chart-site-time" ).html(""); + $( "#chart-geo" ).html(""); $.ajax({ url: queryString, @@ -103,22 +110,6 @@ }); geoChart.setDataTable(dt); geoChart.draw(); - -/* var histogram = new google.visualization.ChartWrapper({ - 'chartType': 'Histogram', - 'containerId': 'chart-histo', - 'options': { - 'width': 300, - 'height': 300, - }, - 'title': 'Sites by load', - 'view': { - 'columns': [1, 2] - } - }); - histogram.setDataTable(dt); - histogram.draw(); */ - } function handleResponse(response) { -- 2.47.0