Josse34
Josse34

Reputation: 17

Highstock : Shared tooltip except for one series

Concerning http://jsfiddle.net/5gjne/10/ I would like simply hide the "red" range series (range2) into tooltip, how to make this?

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

Thanks!

Upvotes: 0

Views: 335

Answers (1)

Mark
Mark

Reputation: 108512

If you disable mouse tracking on that series it'll be excluded from tooltip.

{
    name: 'Range',
    data: ranges2,
    type: 'arearange',
    lineWidth: 0,
    linkedTo: ':previous',
    color: Highcharts.getOptions().colors[0],
    fillOpacity: 0.3,
    color: 'red',
    zIndex: 0,
    enableMouseTracking: false //<--add this
},

See updated fiddle.

Upvotes: 2

Related Questions