]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/static/js/weaponCharts.js
Enable userInteractiveGuideline() on acc chart.
[xonotic/xonstat.git] / xonstat / static / js / weaponCharts.js
index c2a7049cad00fb5f112ef26c6e77b47266098873..8c49d8a3d8006846723c4a632a42acd38e2c6036 100644 (file)
@@ -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 '<h3>' + key + '</h3>' + '<p>' +  y + ' accuracy in game #' + x + ' <br /> ' + data.averages[key]  + '% average over ' + findNumGames(key) + ' games</p>';