Hi Suzanne,

We don't have tooltips for axis labels, though we have though about adding
support for that.  At best, you could use something like jQuery to attach
event handlers to the generated text elements, but that sounds rather
brittle.

Regarding tick labels with linebreaks, all you have to do is include a
newline character in your label.  e.g. 'United\nStates'.  You can do this
just for the formatted representation if you like:

  [{v: 'US', f: 'United\nStates'}, ...]

The newline character is converted into whitespace when the formatted
representation is used in a tooltip.


On Mon, Oct 17, 2016 at 6:27 PM, Suzanne Paley <suzanne.pa...@gmail.com>
wrote:

> I have a column chart with a discrete hAxis.  My hAxis category labels are
> abbreviated forms of a longer string, which I would like to show in a
> tooltip, but there doesn't seem to be any way to accomplish that.  I
> wouldn't even mind rolling my own tooltips, but it seems that no mouseover
> event is even triggered when I mouse over a category label.
>
> Also (or perhaps alternatively), is there any way to force a linebreak in
> a category label?  I'm seeing longish labels overlapping even when I think
> they should be split over multiple lines, and I'm not sure how to prevent
> that.
>
> Suzanne
>
> --
> 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-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to google-visualization-api@
> googlegroups.com.
> Visit this group at https://groups.google.com/
> group/google-visualization-api.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-visualization-api/5cb76857-21fd-463b-a186-
> 40503141ee10%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/5cb76857-21fd-463b-a186-40503141ee10%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
dlalibe...@google.com <dlalibe...@google.com>   5CC, Cambridge MA

-- 
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-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOx9vMNSOZV4fqkOtLCjdXboERyFNM017RoFWX3ZaaCDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to