Skip to content

Commit

Permalink
Dev: Fallback for ugly statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Dec 5, 2016
1 parent b6dc189 commit 2c023b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/admin/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function init_chart_js_graph_with_datasets($type,$qid)
var $canvas = document.getElementById(canvasId).getContext("2d");
var $canva = $('#'+canvasId);
var $statistics = statisticsData['quid'+$qid];
if($statistics == undefined) return;
var $labels = $statistics.labels
var $grawdata = $statistics.grawdata
var $color = $canva.data('color');
Expand Down Expand Up @@ -148,6 +149,7 @@ function init_chart_js_graph_with_datas($type,$qid)
var $canva = $('#'+canvasId);
var $color = $canva.data('color');
var $statistics = statisticsData['quid'+$qid];
if($statistics == undefined) return;
var $labels = $statistics.labels
var $grawdata = $statistics.grawdata
var $chartDef = new Array();
Expand Down Expand Up @@ -799,4 +801,4 @@ $(document).ready(function(){


});
});
});

0 comments on commit 2c023b4

Please sign in to comment.