From: Ant Zucaro Date: Sat, 5 May 2012 11:57:28 +0000 (-0400) Subject: Add labels to the graph. X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=b60f0eec930b011ca7a050cdd9506c2e8cf003f0;p=xonotic%2Fxonstat.git Add labels to the graph. --- diff --git a/xonstat/static/css/style.css b/xonstat/static/css/style.css index 72a84b6..077fc03 100755 --- a/xonstat/static/css/style.css +++ b/xonstat/static/css/style.css @@ -3455,6 +3455,8 @@ a.thumbnail:hover { .game tr:hover { background-color: #222; } + +/* accuracy and weapon graphs */ .weapon-nav { height: 70px; margin-bottom: 20px; @@ -3477,3 +3479,8 @@ a.thumbnail:hover { .weapon-nav p { text-align: center; } + +.flot table, .flot td { + border: 0; +} + diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index c087584..79942de 100755 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -27,7 +27,7 @@ ${nav.nav('players')} $.plot( $("#acc-graph"), - [ { data: avgs }, { data: accs }, ], + [ { label: 'average', data: avgs }, { label: 'accuracy', data: accs }, ], { yaxis: {ticks: 10, min: 0, max: 100 }, }); } @@ -99,7 +99,7 @@ Player Information

Accuracy

-
+