I am using Highcharts v5 in styled mode.
In normal mode you can specify the color of the chart with the 'color'-attribute as so:
series: [{
data: [...],
name: "mySeries",
color: '#FF0000'
}]
In styled mode you are supposed to specify the color by colorIndex...
series: [{
data: [...],
name: "mySeries",
colorIndex: 2
}]
...and, in the css, you have to specify the color for the colorIndex.
.highcharts-color-2 {
fill: #8E44AD;
stroke: #8E44AD;
}
Is there any way in styled mode i can set the color by its hex-code directly, without having to implement a css-class first?