Uh oh!
There was an error while loading. Please reload this page.
Tooltips - #51
Conversation
artemeff
commented
Mar 25, 2013
Awesome 👍 |
wojons
commented
Mar 25, 2013
When is this planned to be merged into master? |
stephanstapel
commented
Mar 25, 2013
Are you planning to extend this so that no special area needs to be configured but tooltip is automatically shown when the mouse hovers over a diagram shape? |
Regaddi
commented
Mar 25, 2013
Currently the tooltip appears when the user hovers:
For other chart types the tooltip registration has to be done manually when programming the rendering algorithm. |
stephanstapel
commented
Mar 25, 2013
sounds cool, thanks! |
peachananr
commented
Mar 26, 2013
I just couldn't get the tooltips to work on a Doughnut chart. Can you post some example code for it? |
wbashir
commented
Mar 26, 2013
I am just wondering if this feature has already been merged in place with the current branch? |
mouhsinelonly
commented
Dec 15, 2013
i'm using the latest version Version 31.0.1650.63 m |
Wikunia
commented
Dec 15, 2013
Yeah me too. It works on my page. Did you test it @mouhsinelonly ? |
alternativshik
commented
Dec 26, 2013
Chrome 32.0.1700.68 beta - doesn't work. |
Wikunia
commented
Dec 27, 2013
@alternativshik did you test my version here -> http://github.wikunia.de/Table2Chart/ It work works for 31.0.1650.63 m |
mouhsinelonly
commented
Dec 27, 2013
@Wikunia yes your version works in chrome. |
Wikunia
commented
Dec 27, 2013
@mouhsinelonly I've add this jhdavids8@194261a commit from @jhdavids8 in my version! |
mouhsinelonly
commented
Dec 27, 2013
tested the commit but with no luck !! still the same probleme in chrome 2013/12/27 Ole Kröger notifications@github.com
*Mouhsine Bakhich * ,Developper Trans Gulf For Information Technology |
Wikunia
commented
Dec 27, 2013
Oh that's strange I think I didn't change sth. else which can affect tooltips in Chrome ... |
Cristy94
commented
Dec 29, 2013
@Wikunia There is a bug with this tooltip branch on Chrome 31, Nexus 7 (I think any android device, KitKat). Once the bar chart reaches almost 100% the canvas fails to draw correctly (the bars disappear and the scale is only visible in the bottom-part of the canvas). This problems does not occur on the Chart.js homepage demo. See my SO question: http://stackoverflow.com/questions/20767973/chart-js-disappears-on-android |
Wikunia
commented
Jan 1, 2014
@Cristy94 and I realized that the problem is only for the bar chart, so there is no problem with the stacked bar chart. Let me see... :D |
ghost
commented
Feb 9, 2014
Works in most browsers, except Chrome. I've tested it with Line and Bar charts, neither seem to work in Chrome. IE and FF work great. Tested Chrome version: 32.0.1700.107 The charts render fine btw (in all browsers)... |
chipowster
commented
Feb 12, 2014
Would have some estimate of when it will work in chrome? |
cpcbell
commented
Feb 12, 2014
Must be something really silly about how the event is handled. Works in Safari but not Chrome, very odd. |
cpcbell
commented
Feb 12, 2014
Okay I was able to make it work by taking the event out of the if/else that was using window.touch, so it has something to do with Chrome thinking window.touch is always on perhaps? I will look for a better way to write that if, but in the meantime you can just take the onmousemove call out of that if assuming you don't care about mobile. |
cpcbell
commented
Feb 12, 2014
My theory is confirmed, http://stackoverflow.com/questions/18459747/chrome-29-window-touch basically window.Touch in chrome no longer returns undefined, so we have to do a better check for mobile touch devices. |
cpcbell
commented
Feb 12, 2014
This makes Chrome work as expected: I would push my changes but I've changed a bunch of other stuff today and I don't want to push those yet. |
Regaddi
commented
Mar 5, 2014
Touch check is fixed in my latest master. |
Strainy
commented
Mar 5, 2014
@Regaddi - your latest master doesn't work for me at all in FireFox 27.0.1 |
Regaddi
commented
Mar 5, 2014
@Strainy Minified or Non-Minified? |
Strainy
commented
Mar 5, 2014
@Regaddi - It seems both aren't working. |
Regaddi
commented
Mar 5, 2014
@Strainy both are just fine for me with Firefox 27.0.1. |
gsprenger
commented
Mar 6, 2014
@jhdavids8 I took your fork that has mouse events for Line points and added mouse events for Polar Area Charts. If anyone is interested, it's here. |
Stafie
commented
Mar 7, 2014
@Cristy94 Did you found a workaround/solution for this on Android by any chance? Experiencing the same thing here.. |
olanchuy
commented
Apr 29, 2014
This is great! really really nice! Just have some questions. If I have multiple data on one chart. Is there a way to edit the template to its specific data? because right now, It only shows the x and y axis labels |
FVANCOP
commented
May 1, 2014
I have developped an alternative version of Chart.js that you will find on https://github.com/FVANCOP/ChartNew.js. The tooltips have been implemented in another way : in ChartNew.js, you have to specify option "annotateDisplay : true" to see the "hover" display. In this version, the display is fully configurable through option "annotateLabel" option. The value for the annotateLabel must be a "template" value (like the scaleLabel parameter described in Nick's version). Other options are also available to configure the "hover" displays (options starting with "annotate"). |
I implemented some basic tooltips, which show (if defined) the label and value onmouseover.
Every tooltip can be registered by a configurable area:
Tooltip Defaults can be overwritten by adding a 2nd parameter to the "new Chart()" function, i.e.
The following Tooltip options are available:
The tooltip moves relative to the current mouse cursor position and shows only, if hovering a valid chart point or area.
Tooltips can be disabled via specific chart option "showTooltips" i.g.
They can be styled individually and do right now a basic job:
Showing the hovered label and value.