Highchart get color series and marker

I would like to display the color and marker of a series of line charts next to the table where I show the data. I did not set the color manually.

How can I get the color and series marker via JavaScript?

+6
source share
1 answer

You can use the following:

var clr0 = chart.series[0].color; var mrk0 = chart.series[0].symbol; 

Here is a jsfiddle example.

+9
source

Source: https://habr.com/ru/post/925474/


All Articles