To use the column roles, you have to set the column property. Typically
this is done when creating the DataTable, but using the arrayToDataTable
method bypasses that. I believe you can call the setColumnProperty method
of the DataTable to set the column role, something like this should do it:
data.setColumnProperty(5, 'role', 'tooltip');
On Thursday, October 18, 2012 8:04:20 PM UTC-4, Alexsander Santos wrote:
>
> The result of the execution of the function below is "Last serie does not
> have enough data columns (missing 3)"
>
>
>
> function drawVisualization() {
> var data = google.visualization.arrayToDataTable([
> ['10:01', 30, 32, 35, 39,'teste'],
> ['10:02', 33, 35, 37, 37,'teste'],
> ['10:09', 36, 40, 37, 40,'teste']
> // Treat first row as data as well.
> ], true);
>
> Someone told about role:tooltip but i dont know how to use it. Is is a
> candlestick chart.
>
>
> Could someone correct the code?
>
>
> Thanks!
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/3sYHUbySTyoJ.
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.