Mateusz Nowak
Mateusz Nowak

Reputation: 4121

How to change selected point styles in Highcharts?

How to change style of selected point in Highcharts? I would like to give it different color filling inside other than white.

Selected point

 var chart = $('#container').highcharts();
 chart.series[0].data[1].select()

Demo: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/members/point-select/

Upvotes: 0

Views: 1253

Answers (1)

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

Use the states option for the marker.

marker: {
                states: {
                    hover: {
                        fillColor: 'red',
                        lineWidth: 0
                    },
                    select: {
                    color: 'red',
                        fillColor: 'green'
                }
                }
            }

http://jsfiddle.net/cpxmzju3/10/

Upvotes: 1

Related Questions