Код графика Highchart показан ниже. Я хочу, чтобы цвет каждого столбца был разным.В настоящее время я получаю тот же цвет в баре
Highcharts.chart('container', {
chart: {
type: 'column',
},
title: {
text: 'Popular '
},
credits:{
enabled:false
},
xAxis: {
max: 20,
type: 'category',
style:{
fontSize: '12px'
}
},
yAxis: {
min: 0,
allowDecimals:false,
title: {
text: 'Number of applications',
style:{
fontSize: '12px'
}
},
gridLineWidth:0,
minorGridLineWidth: 0,
tickLength: 5,
tickWidth: 1,
tickPosition: 'inside',
lineWidth:1
},
scrollbar: {
enabled: true
},
legend: {
enabled: false
},
tooltip: {
pointFormat: 'hi'
},
series: [{
name: Stats',
data: data,
color:'#2ecc71',
pointWidth: 25,
}],
Формат данных: [["Qualcom", 17], ["The ram", 12], ["Aoperty", 8],["Ob.", 8], ["Sugh", 8],]
Вывод показан на рисунке. Я хочу, чтобы каждый столбец был другого цвета, может ты мне помогаешь?