Skip to content

When the labels are lengthy, it leaves a huge space between legend and the chart - Radar chart #9823

Answered by LeeLenaleee
pmenika asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure if this is something that can be solved by chart.js since the chartArea needs to become smaller to make place for the labels. So you will keep a white space, either above or below the legend.

You can give the canvas less height to combat this yourself but I dont think this is behaviour chart.js should do for you since will give verry weird behaviour for people who dont know it and dont expect the canvas to be smaller for some reason.

https://codesandbox.io/s/flamboyant-panka-wubnq?file=/src/components/HelloWorld.vue

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kurkle
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #9819 on November 04, 2021 09:39.