Remove Axis from Chart (Pie)
I've created a pie chart, but there are axis that appear. I have tried to remove these via the
getOptions
method, but it doesn't remove them. Strangely when I enable them, they appear twice.


3 Replies
use the grid options in the axes to control this. Here is the link from the API
https://www.chartjs.org/docs/latest/api/interfaces/CartesianScaleOptions.html#grid
You should configure the options something like this
Interface: CartesianScaleOptions | Chart.js
Open source HTML5 Charts for your website
Solution
Ah, what I actually needed was to use
x
and y
instead of xAxis
and yAxis
.I thought I tried this, but it must've been cached…