cal-heatmap icon indicating copy to clipboard operation
cal-heatmap copied to clipboard

Additional Data in the Tooltip

Open koalaboy808 opened this issue 10 years ago • 7 comments

My calendar only takes in four values (0,1,2,3). The four values correspond to days in my local school calendar year (0 - Regular Days, 1 - Holidays, 2 - Teacher Days, 3 - School Meeting) I would like the tooltip to label them more discretely (i.e. the type of Holiday or the type of School Meeting). I've looked through 'subDomainTitleFormat' but can't seem to find a solution. Is it possible to represent data other than date and value?

Hopefully I'm being clear enough. Here are a few examples though of my ideal tooltip:

  • Christmas, December 25, 2015
  • New Teacher Orientation, May 26, 2015

Thanks!

koalaboy808 avatar Aug 14 '14 20:08 koalaboy808

No, you can't assign another data (holiday name, etc ...), in addition to the four (0,1,2,3) values to a date.

wa0x6e avatar Aug 14 '14 22:08 wa0x6e

I created a pull request that allows for this functionality #169

timkock avatar Sep 16 '15 15:09 timkock

You can. subDomainTitleFormat expects a string with placeholders which is then executed against overloaded String.propotype.format(). If you hack this and pass subDomainTitleFormat: {format: function(params){}} you can do whatever you want in the custom function.

Yurko-Fedoriv avatar Jan 06 '17 19:01 Yurko-Fedoriv

How can I get data in my tool tip?

rizwanshah610 avatar Jan 07 '19 10:01 rizwanshah610

How it's possible that we can get studentdata in tool tip? When I will be hover on my subdomain date.

rizwanshah610 avatar Jan 07 '19 10:01 rizwanshah610

For now, you can't, it's WIP

wa0x6e avatar Jan 08 '19 09:01 wa0x6e

is there an update on customizing tool tip as we want to add some information apart from date and value, to show in tool tip.

manojkumar82 avatar Jan 23 '20 10:01 manojkumar82

#169 merge into V4 branch

wa0x6e avatar Nov 06 '22 16:11 wa0x6e