2👍
✅
Where you make your axes, instead of setting display: true
set it to display: 'auto'
this will make it so that when all datasets that are linked to that axis are hidden the axis disapears
Source:stackexchange.com