Bhasker G
Bhasker G

Reputation: 217

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.

Upvotes: 6

Views: 12581

Answers (1)

wergeld
wergeld

Reputation: 14462

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).

Upvotes: 14

Related Questions