Malaiyandi Murugan
Malaiyandi Murugan

Reputation: 393

Add stacked border color in Highchart?

How can I add stacked border color in highchart?

enter image description here

Upvotes: 1

Views: 84

Answers (2)

Lester Vargas
Lester Vargas

Reputation: 368

You could wait until they add the property... or you could add a dynamic event handler like this.

$('#bar_container').on('hover','#bar_id',function(){
    $(this).css('border','1px solid #ffff00');
}

That way the someone hover the bar it will highlight in yellow event when the bar was created dynamically.

Upvotes: 0

Paweł Fus
Paweł Fus

Reputation: 45079

You can vote for that feature in Highcharts here.

I created simple example for you, using renderer to add these shapes. Note, that you should update these shapes in chart.events.redraw event with proper dimensions: http://jsfiddle.net/qwxj9d7o/

Upvotes: 3

Related Questions