Fit title on graph.
authorCMDR furrycat <elite@furrycat.net>
Thu, 4 Feb 2016 08:07:13 +0000 (03:07 -0500)
committerCMDR furrycat <elite@furrycat.net>
Thu, 4 Feb 2016 08:07:13 +0000 (03:07 -0500)
entry.js
timeline.js

index 63f2d8b..086a300 100644 (file)
--- a/entry.js
+++ b/entry.js
@@ -619,9 +619,8 @@ function do_plot(table, canvas) {
   Plotly.plot(canvas, points, {
     title: 'Competitor distance',
     xaxis: { title: 'Time (s)', autorange: true, rangemode: 'nonnegative', tickformat: '%H:%M:%S'  },
-    yaxis: { title: 'Distance (Ly)', autorange: true, rangemode: 'nonnegative' },
-    margin: { t: 0 } }
-  );
+    yaxis: { title: 'Distance (Ly)', autorange: true, rangemode: 'nonnegative' }
+  });
 }
 
 /* Check entry validity. */
index f4c7fd8..286e429 100644 (file)
@@ -37,9 +37,8 @@ function loaded() {
     Plotly.plot(canvas, points, {
       title: 'Competitor distance',
       xaxis: { title: 'Time', autorange: true, rangemode: 'nonnegative', tickformat: '%H:%M:%S'  },
-      yaxis: { title: 'Distance (Ly)', autorange: true, rangemode: 'nonnegative' },
-      margin: { t: 0 } }
-    );
+      yaxis: { title: 'Distance (Ly)', autorange: true, rangemode: 'nonnegative' }
+    });
   }
 }