]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Add labels to the graph.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 5 May 2012 11:57:28 +0000 (07:57 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 5 May 2012 11:57:28 +0000 (07:57 -0400)
xonstat/static/css/style.css
xonstat/templates/player_info.mako

index 72a84b68bbe3666c12cebeebe24c89a8839bfec8..077fc031f9a68ee4fc80e36020deb30d9416b969 100755 (executable)
@@ -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;
+}
+
index c0875840d33ff59ddba55c1636ee2115e8bf4d04..79942dec5c0dea403035882fb29c15172fc0cc09 100755 (executable)
@@ -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
 <div class="row">
   <div class="span10">
     <h3>Accuracy</h3>
-    <div id="acc-graph" style="width:800px; height:200px;">
+    <div id="acc-graph" class="flot" style="width:800px; height:200px;">
     </div>
 
     <div class="weapon-nav">