Tooltip from data related to the series

Technical support, bug reports and more.

Tooltip from data related to the series

Postby groberts on Fri Jul 30, 2010 10:24 pm

Hi,

Say I have series describing how many tasks each employee has done in a week, how can I get the tooltip to display the task names when I hover over an employee in a particular week ? (Time in weeks on the x axis, groups of columns for employees for each week, n tasks up the y axis).

I can see that the formatter function has access to the x and y value, but how can I look up other values ? Perhaps I should put my data in another JS array and index into it with x, y. Any ideas welcome !

Thanks,

Guy.


Code: Select all
      tooltip: {
         formatter: function() {
            return ''+
               this.y +' tasks(s) in week  '+ this.x;
         }
      },
groberts
 
Posts: 2
Joined: Fri Jul 30, 2010 10:15 pm

Re: Tooltip from data related to the series

Postby not on Tue Aug 03, 2010 10:18 am

Maciej Piecha,
Highcharts Support Team
User avatar
not
 
Posts: 329
Joined: Mon Jun 07, 2010 4:01 pm

Re: Tooltip from data related to the series

Postby groberts on Wed Aug 04, 2010 12:24 pm

Thanks, I should have spent more time searching this forum, sorry for that.

Anyway, this is exactly what I needed.
groberts
 
Posts: 2
Joined: Fri Jul 30, 2010 10:15 pm

Re: Tooltip from data related to the series

Postby not on Wed Aug 04, 2010 2:16 pm

You're welcome! There is nothing to apologize for. I was in a rush and just pasted the link :)
Maciej Piecha,
Highcharts Support Team
User avatar
not
 
Posts: 329
Joined: Mon Jun 07, 2010 4:01 pm


Return to Highcharts Usage

Who is online

Users browsing this forum: Google [Bot], levipage, MSN [Bot], RichardM and 5 guests