Skip to content

Looks like ratio has changed in canvas #8766

Answered by kurkle
CrowMash asked this question in Q&A
Discussion options

You must be logged in to vote

It was changed here: #7414 and after some issues related issues were fixed here: #8659

So there are at least 4 options to choose from:

  • remove the override: Chart.overrides.doughnut.aspectRatio = undefined;
  • override the override in options (to respect initial size): options: { aspectRatio: null }
  • specify the desired aspect ration in options: options: { aspectRatio: 10 }
  • set maintainAspectRatio: false and make sure the container (that your fiddle is missing!) is in the desired ratio.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CrowMash
Comment options

Answer selected by CrowMash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants