From: Ant Zucaro Date: Fri, 5 Jun 2015 15:30:40 +0000 (-0400) Subject: Add Arc to the damage chart. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1da06c9505c0449fa1a2321c3f8a3405d00ec64b;p=xonotic%2Fxonstat.git Add Arc to the damage chart. --- diff --git a/xonstat/static/js/weaponCharts.js b/xonstat/static/js/weaponCharts.js index 4a9d057..8b3d64a 100644 --- a/xonstat/static/js/weaponCharts.js +++ b/xonstat/static/js/weaponCharts.js @@ -189,6 +189,8 @@ function drawDamageChart(weaponData) { data.addColumn({type: 'string', role: 'tooltip'}); data.addColumn('number', 'Devastator'); data.addColumn({type: 'string', role: 'tooltip'}); + data.addColumn('number', 'Arc'); + data.addColumn({type: 'string', role: 'tooltip'}); var flattened = flatten(weaponData); @@ -214,6 +216,8 @@ function drawDamageChart(weaponData) { var hagarTT = damageTooltip("hagar", hagar); var rl = damageValue(flattened[game_id], "devastator"); var rlTT = damageTooltip("devastator", rl); + var arc = damageValue(flattened[game_id], "arc"); + var arcTT = damageTooltip("arc", arc); data.addRow([ game_id.toString(), @@ -225,7 +229,8 @@ function drawDamageChart(weaponData) { electro, electroTT, crylink, crylinkTT, hagar, hagarTT, - rl, rlTT + rl, rlTT, + arc, arcTT ]); } @@ -257,7 +262,8 @@ function drawDamageChart(weaponData) { 5: { color: weaponColors["electro"] }, 6: { color: weaponColors["crylink"] }, 7: { color: weaponColors["hagar"] }, - 8: { color: weaponColors["devastator"] } + 8: { color: weaponColors["devastator"] }, + 9: { color: weaponColors["arc"] } } };