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

Bug: bar graph always has 60 pixels reserved on the right by default #6467

Closed
CurtisHumphrey opened this issue Jun 27, 2024 · 1 comment
Closed
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)

Comments

@CurtisHumphrey
Copy link

CurtisHumphrey commented Jun 27, 2024

Dependencies check up
I have verified that I use latest version of all @mantine/* packages
What version of @mantine/* packages do you have in package.json?
7.11.0

What package has an issue?
@mantine/charts

What framework do you use?
Other, I will specify in the bug description

In which browsers you can reproduce the issue?
Chrome

Describe the bug
https://github.com/mantinedev/mantine/blame/0f66e8844c031878906b83ebf5bcf9d20c271254/packages/%40mantine/charts/src/BarChart/BarChart.tsx#L373

With this introduction even if no right y axis is used rechart reserves 60px of width making all bar charts narrower.

This is affecting both BarChart and LineChart

adding

    <BarChart
         rightYAxisProps={{ width: 0 }}
         ...

restores the behavior for now but the right axis should only be added if it is used.

@CurtisHumphrey CurtisHumphrey changed the title Bug: bar graph always has 60 pixels reserved on the left by default Bug: bar graph always has 60 pixels reserved on the right by default Jun 27, 2024
rtivital added a commit that referenced this issue Jun 28, 2024
…rt in BarChart, AreaChart and LineChart components (#6467)
@rtivital rtivital added the Fixed patch Completed issues that will be published with next patch (1.0.X) label Jun 28, 2024
@rtivital
Copy link
Member

rtivital commented Jul 2, 2024

Fixed in 7.11.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)
Projects
None yet
Development

No branches or pull requests

2 participants