janb
janb

Reputation: 136

Color individual markers on hover in Highcharts

I managed to set marker colors for individual markers

{
   y: 5,
   marker: {
    fillColor: '#222'
   }
}

But onhover it turns into the default color, is it posible to set this value?

I fould the selectionMarkerFill option, but this is a child option of chart and has no effect when added in the marker option in my code.

Upvotes: 4

Views: 5499

Answers (1)

Sondre
Sondre

Reputation: 1898

This is untested as jsFiddle isn't responding for me right now, but I would take a look at

http://www.highcharts.com/ref/#plotOptions-series-states-hover-marker--fillColor

This seems to be the options for markers on hover.

Edit based on janb's comment:

 {
    y: 5, 
    marker: { 
        fillColor: '#222', 
        states: { 
            hover: { 
                fillColor: '#222' 
            }
         }
    }
}

Upvotes: 4

Related Questions