Update point color
HTML
<script src="https://github.highcharts.com/bugfix/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
<button id="button" class="autocompare">Update first point</button>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'column'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
series: [{
data: [{
"y": 90,
"color": "rgba(255,0,0,1)"
}, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
// button handler
var chart = $('#container').highcharts();
$('#button').click(function () {
chart.series[0].data[0].update({
"y": 110,
"color": "rgba(0,255,0,1)"
});
});
});