Hi,
You're absolutely right. When you're creating a chart with Highcharts, the
styledMode is disabled by default, which is not the case for
Dashboards.
You can of course turn off the
styledMode if you want (
https://api.highcharts.com/highcharts/chart.styledMode), but unless you change it you need to keep in mind that it's turned on.
With the
styledMode changing
series.color will not work. As you can read in the API (
https://api.highcharts.com/highcharts/p ... ries.color):
In styled mode, the color can be defined by the colorIndex option. Also, the series color can be set with the .highcharts-series, .highcharts-color-{n}, .highcharts-{type}-series or .highcharts-series-{n} class, or individual classes given by the className option.
I've updated your
demo and added 2 colors via CSS and the
colorIndex property:
https://jsfiddle.net/BlackLabel/h1dtaLj8/
Please check this out and let me know if it works for you. Do not hesitate to ask in case my explanation was not clear.
Best regards!