fid
fid

Reputation: 72

Radarwidth beyond label chart.js

I'm drawing a radarchart with chart.js for responsive design (for every device) and I want the radar go beyond the labels beginning.

This is my chart now: enter image description here

I want to display the chart like this (that the radar is bigger on small devices): enter image description here

Upvotes: 1

Views: 23

Answers (1)

adelriosantiago
adelriosantiago

Reputation: 8124

There is no way to make the labels appear inside the chart so I think the best thing to do is to set maintainAspectRatio: false to make the chart take more space on mobile.

It would end up like this:

enter image description here

Demo: https://codepen.io/adelriosantiago/pen/bGedaGZ?editors=1010

Upvotes: 1

Related Questions