Patrikk
Patrikk

Reputation: 31

dynamically change fontWeight on a legend item Highcharts

I was wondering how I can change font and font weight when I double click the one of the legend items

function(chart){


$.each(chart.series, function(i, serie){

    $(serie.legendItem.element).bind('dblclick', function(){
       selectedSerie =  serie.index;

        // -----HERE------
        chart.legend.allItems[selectedSerie].update({fontWeight: 'bold'

        });


    })

})

here is it in fiddler row 160

http://jsfiddle.net/94bas/2/

Upvotes: 1

Views: 811

Answers (1)

Sebastian Bochan
Sebastian Bochan

Reputation: 37588

Unforntaltey this option is not possible, because border will be not adapted.

Upvotes: 1

Related Questions