google charts - modify tooltip hide/show time

1,238 views
Skip to first unread message

little...@gmail.com

unread,
Sep 2, 2013, 7:44:54 AM9/2/13
to google-visua...@googlegroups.com
Is there a way to set fadeIn/ fadeOut time for the tooltips displayed in the google chart? 

I have one tooltip which contains a scroll bar and; need to scroll down to see data in the tooltip before it disappears.

Thanks.

-little

asgallant

unread,
Sep 2, 2013, 11:12:50 AM9/2/13
to google-visua...@googlegroups.com
You can't set the fade in/fade out time, but you can set the tooltip.trigger action to "selection", which will spawn the tooltip when the user clicks the associated data point, and the tooltip will stay in place until they click another point.  Being able to control the fade values would be quite helpful, so I suggest that you file a feature request to add support.

little...@gmail.com

unread,
Sep 2, 2013, 1:11:19 PM9/2/13
to google-visua...@googlegroups.com
Thanks asgallant for your answer.

I've filed an enhancement request for the feautre: "Issue 1301: Add fadeIn/ fadeOut [hide/show] time property to tooltip on google charts".

I was able to implement what you suggested but I miss what I have lost. Though I am able to scroll in one of the tooltips but now I have to click on every data point whenever I need to know something about it. Can you suggest something? I'll explain my problem:

On a chart, I am displaying some tooltips. Now, data in some of these tooltips is large such that in some cases it bumps off the chart DIV. The UI does not look good, so; I introduce a scroll bar in the tooltip. After making the tooltips dependent on click, I loose the functionality of easily going over the chart and seeing the values by hovering (no selection) but gain the ability to scroll data in the other tooltips. I would like to regain the hover utility along with scroll. Guess I am being greedy.

Any other alternative?

Thanks.

-little

Daniel LaLiberte

unread,
Sep 2, 2013, 1:47:52 PM9/2/13
to google-visua...@googlegroups.com
Little,

It sounds like what you really need is that if the user hovers over the tooltip, it remains visible as long as they stay inside the area of the tooltip, or maybe if they exist for a short time and return.  A fadeOut time by itself would not necessarily support that very reasonable feature.  This is more of a delay before starting a fadeOut, but also a disabling of the fadeOut while you are still hovering, either over the data point or the associated tooltip.  And maybe there would have to be a similar delay before showing a tooltip.

I don't know how difficult it will be to support this delay/disable feature in the current code, or if it will have to wait until we do more restructuring of the event handling, but we'll look into it.  Thanks for your suggestion.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.



--
dlaliberte@Google.com   562D 5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages