Mark Bucknell
Mark Bucknell

Reputation: 447

Highlighting Highcharts column

I have a column graph in highcharts and I want to be about to click on a single column and it stay highlighted until I click it again.

This will make the column highlight but I still need the background to do the same:

this.chart.series[0].data[0].setState('hover')

Upvotes: 0

Views: 180

Answers (1)

Nishith Kant Chaturvedi
Nishith Kant Chaturvedi

Reputation: 4769

Just use

 plotOptions: {
        series: {
            cursor: 'pointer',
           allowPointSelect:true,                
        }
    }

It will do the desired.

Demo fiddle here

Upvotes: 2

Related Questions