0
I think you are changing the scales objects but you should change the chart configuration, because you are going to invoke the update of the chart.
See doc: https://www.chartjs.org/docs/latest/developers/updates.html#updating-options
chart.options.scales.y1.display = false;
chart.options.scales.y2.display = false;
chart.update();
- Chartjs-Radar charts for chartjs always stay filled
- Chartjs-Y Axes not displaying properly on Chartjs
Source:stackexchange.com