Page 1 of 1

Highcharts Crosshairs - Tooltips

Posted: Thu 05 Mar 2015 11:22 pm
by Smithee
Evening all,

Probably a stupid question but i cant see where i am going wrong. I am trying to add cross hairs and a shared tooltip to my highcharts hour graph

http://weather.casa.ucl.ac.uk/hourgraph.htm

I am using:

tooltip: {
shared: true,
crosshairs: true,
valueSuffix: '°C',
},

but i cant seem to get the crosshair to display or be shared, they all snap to the graph line.

Any tips would be great,

Andy

Re: Highcharts Crosshairs - Tooltips

Posted: Thu 05 Mar 2015 11:34 pm
by mcrossley
You have put the tooltip against each series. You need to put the shared option as part of a top-level "tooltip" object...

Code: Select all

options = {
    chart: {
...
    },
    tooltip: {
blah,blah,blah...
    },
etc

Re: Highcharts Crosshairs - Tooltips

Posted: Fri 06 Mar 2015 8:16 am
by Smithee
Thanks! :)

Andy