首页 文章

将背景颜色设置为HighChart xAxis标签

提问于
浏览
2

如何将背景颜色设置为HighChart xAxis标签 .

我尝试了以下但没有运气

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

感谢Advance Navin

3 回答

  • 1

    你不能 . xAxis对象没有属性backgroundColor .

  • 0

    @dgw的答案是不正确的 .

    这是可能的:您可以设置使用HTML标志并添加自己的CSS样式 .

    See this answer

  • 0

    虽然@dgw在说明x轴没有 backgroundColor 属性方面技术上是正确的,但是可以使用替代方法来实现此效果 .

    我希望这些资源对遇到这个问题的其他人有所帮助 .

相关问题