krishna kinnera
krishna kinnera

Reputation: 1543

how to show different colors for each grid line using highcharts?

I wanted to show different color for every grid line, I am attaching the design screenshot is this possible to do? enter image description here

Upvotes: 1

Views: 1866

Answers (1)

MorKadosh
MorKadosh

Reputation: 6006

I don't know any way to do that out of the box, but basically, you can directly alter all the rendered svg elements on the stage:

$.each($('.highcharts-grid path'), function(){
    $(this).attr('stroke',getRandomColor());
});

http://jsfiddle.net/yvu41kso/

Upvotes: 2

Related Questions