Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

highchart get series color and marker

I'd like to display the color and the marker of the series of a line chart next to the table where i display the data. I didnt set the the color manually.

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

like image 694
Mike Avatar asked Sep 15 '12 16:09

Mike


1 Answers

You can use the following:

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

Here's an example on jsfiddle.

like image 78
Greg Ross Avatar answered Oct 15 '22 18:10

Greg Ross