我正在尝试使用 Highstock 创建柱形图。我想为每个单独的列指定颜色。我尽我所能,但无法让它发挥作用。
有人可以建议吗?
非常感谢
$(function () {
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=range.json&callback=?', function(data) {
window.chart = new Highcharts.StockChart({
chart: {
renderTo: 'container',
type: 'columnrange'
},
rangeSelector: {
selected: 2
},
title: {
text: 'Temperature variation by day'
},
tooltip: {
valueSuffix: '°C'
},
series: [{
name: 'Temperatures',
data: data
}]
});
});
});