X Axis rotation is not working

Hello,
I am trying to rotate my x-axis values by either -45 or -90 using the example at the very bottom of [this page] (CEO Dashboard) .

Inside the Advanced tab of the Dashboard my code:
handlers.preRender = function(config, logger){:
config.xAxis.labels.rotation = -90;

config.seriesDefaults.noteTextField = 'Status';
config.seriesDefaults.notes={
position: "right"
}
return true;
}

The console gives an error message:
"Pre-rendering failed: TypeError: Cannot set properties of undefined (reading 'labels')

I also tried to use the example under "How To Rotate Labels" on this page, but the Y-axis labels were affected.

Can someone assist ?

Thanks, Rhonda

Hello @rhonda,

Please try updating the code like so:

	config.categoryAxis.labels = { rotation: -90}

Hello @Margo,

I tried this before. Instead of rotating the x-axis labels, the y-axis labels are rotated. I only need the X-axis labels rotated.

Any further assistance is appreciated.
Thanks, Rhonda

Hello @Margo,

I replaced your suggestion with the following, and it works.

config.valueAxis.labels = {rotation: -90}

Thanks for your help! Rhonda