Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make cursor pointer in Highcharts

We use Highcharts for our reports. On click of a chart, a new tab/window should open. I am able to achieve that by handling the click event in chart. But I am unable to make cursor as pointer.

like image 561
Bhasker G Avatar asked Dec 19 '12 20:12

Bhasker G


1 Answers

Yes, this is possible. See cursor. Example (from that link). Basically you set cursor option for the series:

plotOptions: {
            series: {
                cursor: 'pointer',
                events: {
                    click: function() {
                        alert('You just clicked the graph');
                    }
                }
            }
        }

If you want to make the whole chart clickable then you need to handle mouse hover/over. But then you may lose detail on where you are clicking (want to click series point but now you cant because you captured it on the "top" layer).

like image 103
wergeld Avatar answered Sep 22 '22 13:09

wergeld