seandiacono opened a new issue, #29342:
URL: https://github.com/apache/superset/issues/29342

   ### Bug description
   
   Horizontal bar charts in Apache Superset are created with extra padding when 
a legend is added, affecting the chart's layout and appearance. This issue was 
introduced in [PR 
#27883](https://github.com/apache/superset/pull/27883#issuecomment-2182972005).
   
   **Expected Behavior:**
   The chart should adjust the layout to accommodate the legend without adding 
excessive padding.
   
   ### How to reproduce the bug
   
   1. Create a horizontal bar chart
   2. Ensure that the legend is enabled and the margin is set to 0 or none
   3. You should see extra padding between the chart and the legend
   
   ### Screenshots/recordings
   
   
![image](https://github.com/apache/superset/assets/20338969/f5a0821b-ffdb-4091-a4f8-8ff80b49cba6)
   
   
   ### Superset version
   
   4.0.1
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   This bug was validated by @sfirke in Slack
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to