From: Ant Zucaro Date: Fri, 5 Dec 2014 01:33:48 +0000 (-0500) Subject: Enable userInteractiveGuideline() on acc chart. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f8eaadef0c0e2d10c6d17af361b53617e774b73;p=xonotic%2Fxonstat.git Enable userInteractiveGuideline() on acc chart. --- diff --git a/xonstat/static/js/weaponCharts.js b/xonstat/static/js/weaponCharts.js index c2a7049..8c49d8a 100644 --- a/xonstat/static/js/weaponCharts.js +++ b/xonstat/static/js/weaponCharts.js @@ -87,6 +87,7 @@ var drawAccuracyChart = function(data) { .forceY([0,1]) .x(function(d) { return games[d.game_id] }) .y(function(d) { return d.fired > 0 ? d.hit/d.fired : 0; }) + .useInteractiveGuideline(true) .tooltips(true) .tooltipContent(function(key, x, y, e, graph) { return '

' + key + '

' + '

' + y + ' accuracy in game #' + x + '
' + data.averages[key] + '% average over ' + findNumGames(key) + ' games

';