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.

protected function getOptions(): array
{
    return [
        'scales' => [
            'yAxis' => [
                'display' => false,
            ],
            'xAxis' => [
                'display' => false,
            ],
        ],
    ];
}
axis-disabled.png
axis-enabled.png
Solution
Ah, what I actually needed was to use x and y instead of xAxis and yAxis.
Was this page helpful?