[LNT] r256235 - Add axis names to old LNT graph too

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 21 23:08:59 PST 2015


Author: cmatthews
Date: Tue Dec 22 01:08:59 2015
New Revision: 256235

URL: http://llvm.org/viewvc/llvm-project?rev=256235&view=rev
Log:
Add axis names to old LNT graph too

Modified:
    lnt/trunk/lnt/server/ui/static/lnt_graph.js
    lnt/trunk/lnt/server/ui/templates/v4_graph.html
    lnt/trunk/lnt/server/ui/templates/v4_regression_detail.html

Modified: lnt/trunk/lnt/server/ui/static/lnt_graph.js
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/static/lnt_graph.js?rev=256235&r1=256234&r2=256235&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/static/lnt_graph.js (original)
+++ lnt/trunk/lnt/server/ui/static/lnt_graph.js Tue Dec 22 01:08:59 2015
@@ -316,7 +316,7 @@ function add_data_to_graph(URL, index) {
     is_checked[index] = true;
 }
 
-function init_graph () {
+function init_axis () {
     function onlyUnique(value, index, self) { 
         return self.indexOf(value) === index;
     }

Modified: lnt/trunk/lnt/server/ui/templates/v4_graph.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_graph.html?rev=256235&r1=256234&r2=256235&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_graph.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_graph.html Tue Dec 22 01:08:59 2015
@@ -130,6 +130,7 @@ function init_page() {
     });
 
     init_graph();
+    init_axis();
 }
 
 {% endblock %}
@@ -240,20 +241,22 @@ function init_page() {
 
 	<tr>
         <td colspan="2">
-            <div id="graphbox">
+            <div id="graphbox" style="margin-left:20px">
                 <div id="graph" style="height:500px"></div>
                 <div id="zoombar" style="width:40px;">
                     <button id="in" type="button" class="btn btn-default" style="width:100%;text-align:center;">+</button>
                     <br>
                     <button id="out" type="button" class="btn btn-default" style="width:100%; text-align:center;">-</button>
                 </div>
+                <div id="yaxis">Metric</div>
+                <div id="xaxis">Order</div>
             </div>
         </td>
     </tr>
   
     <tr>
         <td colspan="2">
-            <div id="overview" style="width:100%;height:80px;"></div>
+            <div id="overview" style="height:80px;margin-top:20px;margin-left:20px"></div>
         </td>
     </td>
 
@@ -272,7 +275,7 @@ function init_page() {
       <td style="background-color: #{{ '%02x%02x%02x' % (255*col[0], 255*col[1], 255*col[2]) }}"> </td>
       <td>{{ utils.render_machine(machine) }}</td>
       <td>{{ test_name }}</td>
-      <td>{{ field_name }}</td>
+      <td class="metric">{{ field_name }}</td>
     </tr>
     {% endfor %}
   </table>

Modified: lnt/trunk/lnt/server/ui/templates/v4_regression_detail.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_regression_detail.html?rev=256235&r1=256234&r2=256235&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_regression_detail.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_regression_detail.html Tue Dec 22 01:08:59 2015
@@ -298,7 +298,7 @@ $(document).ready( function () {
     }
       
     register_checkboxes();
-    init_graph();
+    init_axis();
     all_checks();
 
     update_graph();




More information about the llvm-commits mailing list