mistercrunch closed pull request #4532: histograms: fixup left margin assigment
URL: https://github.com/apache/incubator-superset/pull/4532
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/superset/assets/visualizations/histogram.js 
b/superset/assets/visualizations/histogram.js
index b4bf6fcc74..2f29231110 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;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to