Javascript 高图表的背景色
我有一个要求,但我似乎不知道怎么做 我需要有一个背景颜色,我的图表,但不是在highcharts标签。 有没有可能,谁能帮我一下 这里是带有背景色的图表的示例链接Javascript 高图表的背景色,javascript,css,highcharts,background-color,Javascript,Css,Highcharts,Background Color,我有一个要求,但我似乎不知道怎么做 我需要有一个背景颜色,我的图表,但不是在highcharts标签。 有没有可能,谁能帮我一下 这里是带有背景色的图表的示例链接 chart: { backgroundColor: '#FCFFC5', type: 'line' }, 但我需要的是: 在此图像中,红色部分覆盖的区域不需要背景色。。highcharts绘图背景是您要查找的。将此添加到您的CSS: chart: { backgroun
chart: {
backgroundColor: '#FCFFC5',
type: 'line'
},
但我需要的是:
在此图像中,红色部分覆盖的区域不需要背景色。
。highcharts绘图背景是您要查找的。将此添加到您的CSS:
chart: {
backgroundColor: '#FCFFC5',
type: 'line'
},
.highcharts-plot-background {
fill: #FCFFC5;
}
.highcharts-plot-border {
stroke-width: 2px;
stroke: #7cb5ec;
}
实时示例:。您可以分别设置图表背景色和绘图区域背景色:
chart: {
backgroundColor: '#fff',
plotBackgroundColor: '#fcffc5'
}
更新小提琴:
如果您一直查看文档,您会发现