aboutsummaryrefslogtreecommitdiffstats
path: root/public/javascripts/stats-graphs.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/stats-graphs.js')
-rw-r--r--public/javascripts/stats-graphs.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/public/javascripts/stats-graphs.js b/public/javascripts/stats-graphs.js
index 9d9ac5b9d..73e19a6fc 100644
--- a/public/javascripts/stats-graphs.js
+++ b/public/javascripts/stats-graphs.js
@@ -13,6 +13,11 @@ $(document).ready(function() {
graph_data,
graph_div = $('#' + graph_id);
+ if (!graph_data.x_values) {
+ /* Then there's no data for this graph */
+ return true;
+ }
+
graph_div.css('width', '700px');
graph_div.css('height', '400px');