Sai*_*u B 3 javascript css background-color highcharts
我有一个要求,但我似乎不知道如何去做。
我的图表需要有背景颜色,但在 highcharts 中不需要标签。可能吗,有人可以帮我解决这个问题吗?
此处提供带有背景颜色的图表的示例链接。
chart: {
backgroundColor: '#FCFFC5',
type: 'line'
},
Run Code Online (Sandbox Code Playgroud)
但我需要的是:
在这个图像中,被红色部分覆盖的区域不需要有背景颜色。
您可以分别设置图表背景色和绘图区背景色:
chart: {
backgroundColor: '#fff',
plotBackgroundColor: '#fcffc5'
}
Run Code Online (Sandbox Code Playgroud)
更新的小提琴: