Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[charts] Overlap on legend in ResponsiveChartContainer #13541

Closed
MainaMwangiy opened this issue Jun 19, 2024 · 4 comments
Closed

[charts] Overlap on legend in ResponsiveChartContainer #13541

MainaMwangiy opened this issue Jun 19, 2024 · 4 comments
Labels
bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module!

Comments

@MainaMwangiy
Copy link

MainaMwangiy commented Jun 19, 2024

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

Expected behavior

Should be able to add mui styles for margin or padding.
No response

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: overlap of legend in line charts

@MainaMwangiy MainaMwangiy added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 19, 2024
@MainaMwangiy MainaMwangiy changed the title Overlap on legend in ResponsiveChartContainer [charts]: Overlap on legend in ResponsiveChartContainer Jun 19, 2024
@MainaMwangiy MainaMwangiy changed the title [charts]: Overlap on legend in ResponsiveChartContainer [charts] Overlap on legend in ResponsiveChartContainer Jun 19, 2024
@michelengelen michelengelen added bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jun 19, 2024
@michelengelen
Copy link
Member

Hey @MainaMwangiy
I can confirm this bug.
It is added to the board for the team to have a look!
Thanks for raising this!

@alexfauquette
Copy link
Member

The legend and the drawing area are not related.you can free some additional space to the legend by modifying the margin.top https://mui.com/x/react-charts/styling/#placement

@MainaMwangiy
Copy link
Author

Thanks @alexfauquette margin fixed my issue.

Copy link

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@MainaMwangiy: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

3 participants