javascript - Set an existing column to tooltip in google visualization api? -


is possible set existing column used html tooltip bar chart in google api without having perform following:

data.addcolumn({type:'string',role:'tooltip'}); 

then adding tooltip specific fields after converting data datatable? there a:

data.setcolumn(2, {type:'string',role:'tooltip'}) 

such dont have adda new one? such function exist?

my data this:

[ ["name", "number", "tooltip"], ["james", 1, "tooltip james"], ["kyle", 2, "tooltip kyle"] ] 

use datatable#setcolumnproperty method set role:

data.setcolumnproperty(2, 'role', 'tooltip'); 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -