Hello eraka!
To set the desired color to each bar/point in Highcharts all you have to add is a property
color to each point object, like this:
Code: Select all
{
name: 'Prepare office building',
id: 'prepare_building',
start: today + (1 * hour),
end: today + (6 * hour),
color: '#FFFF00'
}
In
color property you can set an individual color for the point by using color in Hex, RGB, RGBa or just the name of color. By default, the color is pulled from the global colours array. I have prepared a simple demo for you, you can find it below.
Demo: https://jsfiddle.net/BlackLabel/Lctjr736/
Let me know if you have any further questions!
Kind regards!