[charts] Overlap on legend in ResponsiveChartContainer #13541
Labels
bug 🐛
Something doesn't work
component: charts
This is the name of the generic UI component, not the React module!
Steps to reproduce
Link to live example: (required)
Steps: Have a legend with different categories like 20 of them for a multi-line charts. The legend options overlap with the lines. Check attached screenshot.
Current behavior
Not able to style the legend when they overlap with the lines.
![image](https://private-user-images.githubusercontent.com/38659056/341038751-4b56ed10-2766-475e-bfc1-2fea3e8eb98a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2MjE5MDUsIm5iZiI6MTcyMTYyMTYwNSwicGF0aCI6Ii8zODY1OTA1Ni8zNDEwMzg3NTEtNGI1NmVkMTAtMjc2Ni00NzVlLWJmYzEtMmZlYTNlOGViOThhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIyVDA0MTMyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3OGRmZTc5NjI2M2RiYzk1MWFjODFkYjQ2MzViNjU5ZGRmYWU3Nzc4MTM1NWNjMTM0MGM3ZDM5ZDgxODI1ODkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tkyH8GrUFGjx904-Cy6m90ZfwyKdfE6Rg6Gl7XFYyZg)
Expected behavior
Should be able to add mui styles for margin or padding.
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: overlap of legend in line charts
The text was updated successfully, but these errors were encountered: