提前感谢您的时间和帮助。
我正在使用 highcharts,只需要设置 x 和 y 轴的背景颜色。见附件:
所以我需要在 x 轴上设置一个与图表的深灰色不同的背景颜色(现在它们显然是相同的)
有谁知道这是否可行,如果可以,该怎么做?我已经广泛使用了 highcharts API Highstock API,但找不到专门针对此的任何内容。
再次感谢您的时间和帮助!
富有的
提前感谢您的时间和帮助。
我正在使用 highcharts,只需要设置 x 和 y 轴的背景颜色。见附件:
所以我需要在 x 轴上设置一个与图表的深灰色不同的背景颜色(现在它们显然是相同的)
有谁知道这是否可行,如果可以,该怎么做?我已经广泛使用了 highcharts API Highstock API,但找不到专门针对此的任何内容。
再次感谢您的时间和帮助!
富有的
你试过了吗:
rendered a rectangle and positioned it to the bottom of the graph.
chart.renderer.rect(0/*position on X-axis*/, 275/*position on Y-axis*/, 680/*width*/ , 25/*height*/, 00)
.attr({
'stroke-width': 0,
stroke: '#888888',
fill: '#888888',
zIndex: 3
})
.add();
阅读更多:highchart renderer
x-asis 没有 backgroundColor将背景颜色设置为 HighChart xAxis 标签
希望这有帮助。