How to customize tooltip Text and Format ?

8,709 views
Skip to first unread message

fabien7474

unread,
Jan 4, 2010, 11:03:12 AM1/4/10
to Google Visualization API
Hi,

I am using Bar Chart and I would like to customize the tooltip
contents and format that appears when clicking on a bar.

I have been through documentation but I didn't find a way to implement
this. Do you know if it is possible and if yes, could you point me out
some code examples ?

Thanks,

Fabien

JorgeOctavio

unread,
Jan 4, 2010, 5:27:17 PM1/4/10
to Google Visualization API
Hi!
About this... Today in the morning I went to my site to see some
charts (pie) I developed last week, but I found that they no longer
supported ending the data list with a : ..] , ); as they used
to.. so I came with this solution at the beggining of the list:
[ [,], as my php used to fill the charts didn't allow me to skip
the last , (coma) in the list..
But also in the changes made this week end to the data viz is I have
no longer the popup that I used to get in the click of a slice...

Do you still have the popup?

Greetings.

fabien7474

unread,
Jan 14, 2010, 7:18:58 PM1/14/10
to Google Visualization API
Is there anyone here who can answer that?

Viz Kid

unread,
Jan 15, 2010, 4:09:02 AM1/15/10
to google-visua...@googlegroups.com

The tooltip content is
  Category
  Series
  Value
where we use the formatted values.

You can edit the formatted values, especially of the value cell which is unique per point, in order to choose some other text. You can also use \n in the formatted value.

As for the tooltip format, see http://code.google.com/apis/visualization/documentation/gallery/barchart.html#Configuration_Options for the relevant configurations options. You cannot change the style of the tooltip but rather only its size and font.

Hope this helps,
  Viz Kid

On Fri, Jan 15, 2010 at 2:18 AM, fabien7474 <fabien....@gmail.com> wrote:
Is there anyone here who can answer that?

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.




Reply all
Reply to author
Forward
0 new messages