将背景色设置为HighChart xAxis标签 [英] Set background color to HighChart xAxis labels

查看:88
本文介绍了将背景色设置为HighChart xAxis标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何设置背景颜色为HighChart xAxis标签。



我尝试了以下但没有运气

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

在此先感谢
Navin

解决方案

您不能。 xAxis对象不具有backgroundColor属性。


How can I set background color to HighChart xAxis labels.

I tried the below but no luck

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

Thanks in Advance Navin

解决方案

You can't. The xAxis object does not have the attribute backgroundColor.

这篇关于将背景色设置为HighChart xAxis标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆