From 8f8eaadef0c0e2d10c6d17af361b53617e774b73 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Thu, 4 Dec 2014 20:33:48 -0500 Subject: [PATCH] Enable userInteractiveGuideline() on acc chart. --- xonstat/static/js/weaponCharts.js | 1 + 1 file changed, 1 insertion(+) 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

'; -- 2.39.2