From d50f56af3053aec989f3eb7ed37be1a6ab56cbdc Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Thu, 4 Feb 2016 03:07:13 -0500 Subject: [PATCH] Fit title on graph. --- entry.js | 5 ++--- timeline.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/entry.js b/entry.js index 63f2d8b..086a300 100644 --- 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. */ diff --git a/timeline.js b/timeline.js index f4c7fd8..286e429 100644 --- a/timeline.js +++ b/timeline.js @@ -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' } + }); } } -- 2.7.4