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

Doughnut chart spaces after updating from 2.6.0 to 2.7.2 #5432

Closed
antonwrld opened this issue Apr 19, 2018 · 4 comments
Closed

Doughnut chart spaces after updating from 2.6.0 to 2.7.2 #5432

antonwrld opened this issue Apr 19, 2018 · 4 comments

Comments

@antonwrld
Copy link

Before updating from 2.6.0 to 2.7.2 a doughnut chart filled the whole container space.
And after updating some left and right space appeared. As the result a new doughnut looks like this:
2018-04-19 nxibl
https://codepen.io/anon/pen/RyNMpN

Is it a bug? I didn't find anything about this issue in docs. But I need this doughnut to fill the whole container as previous.

Don't know if this is somehow connected but in line charts I have some left and right spaces too. And I have no idea how to remove such spaces too.
https://codepen.io/anon/pen/xjbPPB

Browser name and version: Google Chrome 65.0.3325.181

@etimberg
Copy link
Member

@antonwrld you can add aspectRatio: 1 to the config. https://codepen.io/anon/pen/rvaEvZ

This had been added around v2.4 however, was removed as it caused broken backwards compatibility. We will revisit changing the default aspect ratio in v3.

@avillarubia
Copy link

@etimberg Hi, do we have a solution for the newer version?

@etimberg
Copy link
Member

@avillarubia aspectRatio: 1 is still the recommended solution. I opened #7414 to change the defaults for v3

@avillarubia
Copy link

@etimberg thank you

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

No branches or pull requests

3 participants