I am rendering a Gantt chart with different series color. The colors are somehow not reflected on the navigator at the bottom. How can I display the same colors in both series and navigator? Fiddle link : Fiddle Note: These colors are going to be dynamic which will be based on different cases. So I want them to reflect in the navigator too, dynamically. I am changing color of the series like so :
chart: {
events: {
load: function() {
Highcharts.each(this.series[0].points, function(p) {
p.color = 'grey'
});
}
}
},
As you can see series color is grey but in the navigator below, I see different colors.
As per highcharts-gantt documentation:
On event, you should then go through given serie points and change its options (in your case 'color'). The changes will be applied in the timeline below - example code changes the color after 1,5sec.
Working example
In your code it would be:
To avoid shrink of timeline - launch setExtremes() after chart update.
Working example - timeline selection