Highcharts标题背景可以';不能改变
我正在使用Highcharts创建一些图表,但我发现它不适用于更改图表标题的Highcharts标题背景可以';不能改变,highcharts,Highcharts,我正在使用Highcharts创建一些图表,但我发现它不适用于更改图表标题的背景 例如: // works, the color did get to red title: { text: title, style: {"color":"#ff0000"} }, // the color did get to white but the background is not set to red. title: { text: title, s
背景
例如:
// works, the color did get to red
title: {
text: title,
style: {"color":"#ff0000"}
},
// the color did get to white but the background is not set to red.
title: {
text: title,
style: {"backgroundcolor":"#ff0000", "color":"#ffffff"}
},
我该怎么做才能解决这个问题
感谢参考,您可以通过设置useHTML:true
并使用背景色来完成此操作
title: {
useHTML: true,
style: {
color: '#FF00FF',
'background-color': '#000000',
fontWeight: 'bold'
}
},
遗憾的是,它不能与背景色一起导出