我需要动态地为Highcharts图中的每一列设置不同的颜色.我的Highcharts图是:
options = {
chart: {
renderTo: 'chart',
type: 'column',
width: 450
},
title: {
text: 'A glance overview at your contest’s status'
},
xAxis: {
categories: ['Approved Photos', 'Pending Approval Photos',
'Votes', 'Entrants'],
labels: {
//rotation: -45,
style: {
font: 'normal 9px Verdana, sans-serif, arial'
}
}
},
yAxis: {
allowDecimals: false,
min: 0,
title: {
text: 'Amount'
}
},
legend: {
enabled: false
},
series: []
};
series = {
name: "Amount",
data: [],
dataLabels: {
enabled: true, …Run Code Online (Sandbox Code Playgroud) 我正在研究Highstock,我正试图在Highstock的"数据"中设置一个颜色,就像在示例中一样,但我无法让它工作,无论我如何设置颜色,它都没有' t显示在图表上.
我已经尝试使用Highchart API的选项,它可以工作,但它不适用于Highstock.
是因为我使用x,y来指定点吗?请帮忙.