0
如何在高圖中的折線圖上更改線條的顏色?如何更改高圖中尼羅河圖中線條的顏色?
現在該行顯示爲藍色。如果我想讓它說,紅色?
現在我有以下代碼:
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":[]}]
});