From 5ae23b42ecaf596819e3905f3a9ad3d7a4ff2178 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Thu, 30 Nov 2017 15:45:16 +0100 Subject: [PATCH] Adjust margins --- elements/heatmap.js | 5 +++++ elements/polar.js | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/elements/heatmap.js b/elements/heatmap.js index 339c2e8..f9c668a 100644 --- a/elements/heatmap.js +++ b/elements/heatmap.js @@ -61,6 +61,11 @@ class Heatmap extends Component { }, }, paper_bgcolor: 'transparent', + margin: { + r: 0, + t: 0, + b: 0, + }, }; this.ts = ts; ts.getData({ diff --git a/elements/polar.js b/elements/polar.js index b56a95d..36bbe23 100644 --- a/elements/polar.js +++ b/elements/polar.js @@ -57,6 +57,12 @@ class Polar extends Component { showlegend: false, paper_bgcolor: 'transparent', autosize: true, + margin: { + l: 0, + r: 0, + t: 0, + b: 0, + }, }; let data = []; const dayLabels = ts.getDayLabels();