Re: Error on Candlestick tooltip

93 views
Skip to first unread message

asgallant

unread,
Oct 19, 2012, 12:48:17 AM10/19/12
to google-visua...@googlegroups.com
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!
Reply all
Reply to author
Forward
0 new messages