The problem is with your data source - it returns the formatted data values
as numbers and not as strings.

For example, when running
http://www.pikefin.com/testjsp/JSPDataSource//mysqldatasource12.jsp?entityid=1&tqx=reqId%3A0,
one of the cells looked like:
{"f":-27.88,"v":-27.88}
It should be:
{"f":"-27.88","v":-27.88}
Note the additional quotes.

Fixing this should make the tooltip work.


On Tue, Oct 25, 2011 at 10:25 PM, opike <[email protected]> wrote:

> I'm using the line chart that is part of the core chart package. I
> believe it's possible to have a tooltip come up that displays the
> numeric value when a user hovers over a data point, but I can't get it
> to work.
>
> enableInteractivity is set to true by default but I tried explicitly
> setting it just to make sure. That had no effect. Here are the options
> I have set:
>
> var options2 = {};
> options2.height = 400;
> options2.width = 800;
> options2.colors = ['orange','red','blue'];
> options2.hAxis = {};
> options2.hAxis.title = 'Calendar Quarter (format YYYYQ)';
> options2backgroundColor = {};
> options2backgroundColor.fill = 'white';
> options2backgroundColor.stroke = '#000';
> options2backgroundColor.strokeWidth = 6;
> options2.enableInteractivity = true;
> options2.pointSize=4;
>
>
> Here are the charts in question (please give it a minute for the data
> to load):
> http://www.pikefin.com/phptest/charts/equities/epslinechart3.php?entityid=1
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>

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

Reply via email to