From: Ant Zucaro Date: Fri, 6 Sep 2013 13:16:11 +0000 (-0400) Subject: Chart updates work now. Had to recreate. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c46f8732bcb6a92e3b4f2b6ca4973a595b21dbfc;p=xonotic%2Fxonstat.git Chart updates work now. Had to recreate. --- diff --git a/xonstat/templates/nvd3_damage.mako b/xonstat/templates/nvd3_damage.mako index 6a59e61..71cfe43 100644 --- a/xonstat/templates/nvd3_damage.mako +++ b/xonstat/templates/nvd3_damage.mako @@ -37,6 +37,8 @@ ${parent.js()} % for gt in ('overall','duel','ctf','dm','tdm','ca','kh','ft','lms','as','dom','nb','cts','rc'): d3.select('.sprite-${gt}').on("click", function() { + // have to remove the chart each time + d3.select('#damageChartSVG .nvd3').remove(); d3.json("${request.route_url('player_weaponstats_data_json', id=player_id, _query={'limit':limit, 'game_type':gt})}", drawDamageChart); }); % endfor