superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: histograms: fixup left margin assigment (#4532)
Date Fri, 09 Mar 2018 23:31:36 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new f988110  histograms: fixup left margin assigment (#4532)
f988110 is described below

commit f9881101ee9cd447f7ccb2d38bc7563f31f686c5
Author: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
AuthorDate: Sat Mar 10 00:31:34 2018 +0100

    histograms: fixup left margin assigment (#4532)
---
 superset/assets/visualizations/histogram.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/superset/assets/visualizations/histogram.js b/superset/assets/visualizations/histogram.js
index b4bf6fc..2f29231 100644
--- a/superset/assets/visualizations/histogram.js
+++ b/superset/assets/visualizations/histogram.js
@@ -13,12 +13,11 @@ function histogram(slice, payload) {
 
   const draw = function () {
     // Set Margins
-    const left = yAxisLabel ? 70 : 50;
     const margin = {
       top: 50,
       right: 10,
       bottom: 20,
-      left,
+      left: yAxisLabel ? 70 : 50,
     };
     const navBarHeight = 36;
     const navBarBuffer = 10;

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.

Mime
View raw message