0
我想創建一個表像這個樣本試圖與highChart但顏色設計沒有顯示出來
我創建圖表的代碼如下所示
function makeGraph(title, x_axis, Target, Achieved) {
$('#weekly').highcharts({
chart: {
type: 'line'
},
title: {
text: title
},
subtitle: {
text: 'Source: ide-global.com'
},
xAxis: {
categories: x_axis
},
yAxis: {
title: {
text: 'Money'
}
},
plotOptions: {
line: {
dataLabels: {
enabled: true
},
enableMouseTracking: false
}
},
series: [{
name: 'Target',
data: Target
}, {
name: 'Achieved',
data: Achieved
}]
});
}
和我的JsFiddle在這裏
任何人都可以告訴我爲什麼圖表中的行不會出現