Set the background color to the HighChart xAxis shortcuts

How to set background color for HighChart xAxis shortcuts.

I tried below but no luck

xAxis: {Categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], tags: {rotation: 90, style: {color: '# 89A54E', fill: '# 000', backgroundColor: '# FCFFC5',}}, backgroundColor: '# FCFFC5'}

Thanks in Advance Navin

+2
source share
3 answers

You can not. The xAxis object does not have a backgroundColor attribute.

0
source

The answer to @dgw is incorrect.

Perhaps: you can set the HTML flag and add your own css style.

See this answer

+1
source

Although @dgw technically correctly states that the x axis does not have the backgroundColor property, there are alternatives to achieve this effect.

I hope that these resources will be useful to others who come across this issue.

0
source

All Articles