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] Set barGapRatio by default #10196

Closed
oliviertassinari opened this issue Aug 31, 2023 · 0 comments · Fixed by #10317
Closed

[charts] Set barGapRatio by default #10196

oliviertassinari opened this issue Aug 31, 2023 · 0 comments · Fixed by #10317
Assignees
Labels
component: charts This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer enhancement This is not a bug, nor a new feature

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Aug 31, 2023

Steps to reproduce 🕹

Link to live example:

Steps:

  1. Open https://mui.com/x/react-charts/bars/#basics

Current behavior 😯

Screenshot 2023-09-01 at 00 09 16

Expected behavior 🤔

I don't know about the exact values, but something like this would make more sense to me:

Screenshot 2023-09-01 at 00 16 04
<BarChart
  xAxis={[{ scaleType: 'band', barGapRatio: 0.1, categoryGapRatio: 0.2, data: ['group A', 'group B', 'group C'] }]}
  series={[{ data: [4, 3, 5] }, { data: [1, 6, 3] }, { data: [2, 5, 6] }]}
  width={500}
  height={300}
/>

Context 🔦

Screenshot 2023-09-01 at 00 16 42 Screenshot 2023-09-01 at 00 16 57 Screenshot 2023-09-01 at 00 17 29

Your environment 🌎

v6.0.0-alpha.9

@oliviertassinari oliviertassinari added status: waiting for maintainer These issues haven't been looked at yet by a maintainer component: charts This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer labels Aug 31, 2023
@LukasTy LukasTy added enhancement This is not a bug, nor a new feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 12, 2023
@LukasTy LukasTy self-assigned this Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: charts This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer enhancement This is not a bug, nor a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants