I need to figure out how to color the same data series points with different colors in Highcharts. For example, let's say I have a data series for several days and I would like to have a line graph. In this line specific days should be distinguish (maybe colored by some color).
In your data, you can specify the color of the specific points:
data: [{
name: 'Point 1',
color: '#00FF00',
y: 0
}, {
name: 'Point 2',
color: '#FF00FF',
y: 5
}]
For line charts, use "fill color", as explained in the answer below.
For an example in jsFiddle, see http://jsfiddle.net/xqWp5/1/
Try using the fillColor
property:
{
name: 'xyz',
x: 123,
y: 456,
fillColor: '#00FF00'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With