如何更改 highcharts 折线图中线条的颜色?
现在这条线显示为蓝色。如果我想让它说,红色怎么办?
现在我有以下代码:
new Highcharts.Chart({
chart: {
renderTo: 'emissionsChart',
type: 'areaspline',
marginRight: 20
},
legend: {
layout: 'vertical',
align: 'center',
verticalAlign: 'top',
x: 0,
y: 40,
floating: true,
borderWidth: 1,
backgroundColor: '#FFFFFF'
},
xAxis: {
labels: {
formatter: function() {
return this.value.toFixed(0);
}
}
},
yAxis: {
title: {
text: 'Emissions (tCO2e)'
}
},
credits: {
enabled: false
},
plotOptions: {
areaspline: {
fillOpacity: 0.5
}
},
series: [{"name":"High reduction rate","data":[]}]
});