More content when mouseover line chart?

79 views
Skip to first unread message

est

unread,
Jul 22, 2011, 4:59:40 AM7/22/11
to Google Visualization API
Hi guys,

If I mouseover a line chart, a box will show the data point's value.

So can I add more HTML content to this box?

TIA

Roni Biran

unread,
Jul 22, 2011, 5:03:38 AM7/22/11
to google-visua...@googlegroups.com
I don't think that an HTML is acceptable, but you can set the formatted value of each data item so whenever you mouseover it, this is the value that will be shown


--
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.

est

unread,
Jul 24, 2011, 8:47:29 PM7/24/11
to Google Visualization API
> but you can set the formatted
value of each data item so whenever you mouseover it, this is the
value that
will be shown

Umm, no. The numerical value will determin how and where the lines are
drawn. You can't assign arbitary value to it.

On Jul 22, 5:03 pm, Roni Biran <roni.bi...@gmail.com> wrote:
> I don't think that an HTML is acceptable, but you can set the formatted
> value of each data item so whenever you mouseover it, this is the value that
> will be shown
>

asgallant

unread,
Jul 26, 2011, 1:28:48 PM7/26/11
to google-visua...@googlegroups.com
Keep your base data and use the setFormattedValue method or declare your data in object notation: {v: 9, f: 'This is the formatted value of nine'}.

Using that object notation to input a data point, the point would be drawn at 9 and the tooltip would read "This is the formatted value of nine"

See the methods under the DataTable class for more info: http://code.google.com/apis/chart/interactive/docs/reference.html#DataTable
Reply all
Reply to author
Forward
0 new messages