From b60f0eec930b011ca7a050cdd9506c2e8cf003f0 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sat, 5 May 2012 07:57:28 -0400 Subject: [PATCH] Add labels to the graph. --- xonstat/static/css/style.css | 7 +++++++ xonstat/templates/player_info.mako | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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

-
+
-- 2.39.2