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

Inconsistent spacing below chart title #11864

Open
souravsaraf123 opened this issue Aug 16, 2024 · 1 comment
Open

Inconsistent spacing below chart title #11864

souravsaraf123 opened this issue Aug 16, 2024 · 1 comment

Comments

@souravsaraf123
Copy link

Expected behavior

The spacing below the word "My Chart' (aka the chart title) should have been the same in both the charts.

Current behavior

The spacing below the word "My Chart' (aka the chart title) is different in both the charts.

Attached screenshot :
Screenshot 2024-08-16 155345

Reproducible sample

https://codepen.io/souravsaraf/pen/XWLVZym

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

The space below the chart title and the chart axis should be the same and should only be controlled by chart.title.padding and not by data. Here in this example , the chart options are the same but the data is slightly differnet and it is producing inconsistent spacing.

chart.js version

v4.4.1

Browser name and version

Chrome 127.0

Link to your project

https://codepen.io/souravsaraf/pen/XWLVZym

@Rohitpatil-123
Copy link

grace: "10%"

why are you giving this grace This responsible for that gap its not a bug just remove this and then sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants