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

   ### Bug description
   
   Although this bug is closed, I encounter it in this version Version: 4.1.1, 
legend indent setting does not work in mixed chart, orientation and type 
settings work, when changing legend indent nothing changes, everything stays in 
place, although legend indent is applied to other charts
   
   - Example of a bar chart without legend margin:
   
   <img width="1706" height="760" alt="Image" 
src="https://github.com/user-attachments/assets/459462f1-14eb-4e42-af9b-400af584dd07";
 />
   
   - Example of a bar chart with legend margin:
   
   <img width="1730" height="809" alt="Image" 
src="https://github.com/user-attachments/assets/ba906610-b7c8-41ad-92a9-0e4d8247ef55";
 />
   
   Here the legend margin works, then an example of a mixed diagram:
   
   <img width="1718" height="793" alt="Image" 
src="https://github.com/user-attachments/assets/a38a3475-de1e-4699-b1d3-dbb5bc93d3ac";
 />
   
   <img width="1709" height="809" alt="Image" 
src="https://github.com/user-attachments/assets/fe84eb5d-1468-4ff2-b12e-95b6a06a6b2f";
 />
   
   As you can see from the screenshots, the legend margin does not work for 
mixed chart.
   
   
   
   
   
   ### Screenshots/recordings
   
   - Example of a bar chart without legend margin:
   
   <img width="1706" height="760" alt="Image" 
src="https://github.com/user-attachments/assets/459462f1-14eb-4e42-af9b-400af584dd07";
 />
   
   - Example of a bar chart with legend margin:
   
   <img width="1730" height="809" alt="Image" 
src="https://github.com/user-attachments/assets/ba906610-b7c8-41ad-92a9-0e4d8247ef55";
 />
   
   Here the legend margin works, then an example of a mixed diagram:
   
   <img width="1718" height="793" alt="Image" 
src="https://github.com/user-attachments/assets/a38a3475-de1e-4699-b1d3-dbb5bc93d3ac";
 />
   
   <img width="1709" height="809" alt="Image" 
src="https://github.com/user-attachments/assets/fe84eb5d-1468-4ff2-b12e-95b6a06a6b2f";
 />
   
   As you can see from the screenshots, the legend margin does not work for 
mixed chart.
   
   ### Superset version
   
   4.1.3
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   From the frontend side, the code in control.tsx looks like this:
   
   `const legendMarginControl: ControlSetItem = {
     name: 'legendMargin',
     config: {
       type: 'TextControl',
       label: t('Margin'),
       renderTrigger: true,
       isInt: true,
       default: legendMargin,
       description: t('Additional padding for legend.'),
       visibility: ({ controls }: ControlPanelsContainerProps) =>
         Boolean(controls?.show_legend?.value),
     },
   };`
   
   ### Checklist
   
   - [ ] 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