Role columns on the domain

17 views
Skip to first unread message

API Developer

unread,
Aug 16, 2012, 8:10:11 PM8/16/12
to google-visua...@googlegroups.com
Hey guys, 

Do you know if it's possible to place a tooltip on the domain of the data? I've been trying and so far haven't been successful.
Ex:
 var data new google.visualization.DataTable();
  data.addColumn('string''month');
  data.addColumn({'type''string''role''tooltip'});
  data.addColumn('number''Sold Pencils');
                  
  data.addRows([
                 ['FEB''febuary'10],
                 ['JAN''xhi'2310]
               ]);

  // Create and draw the visualization.
  var ac new google.visualization.AreaChart(document.getElementById('visualization'));
  ac.draw(data{
    title 'Monthly Coffee Production by Country',
    isStackedtrue,
    width600,
    height400,
    vAxis{title"Cups"},
    hAxis{title"Month"}
  });
}

asgallant

unread,
Aug 16, 2012, 11:23:03 PM8/16/12
to google-visua...@googlegroups.com
You can't put tooltips on the axis values.  You can put annotations there, though, and they work similarly to tooltips:

var data new google.visualization.DataTable();
data.addColumn('string''month');
data.addColumn({'type''string''role''annotation'});
data.addColumn({'type''string''role''annotationText'});

data.addColumn('number''Sold Pencils');
data.addRows([
    ['FEB''foo''febuary'10],
    ['JAN''bar''xhi'2310]
]); 
Reply all
Reply to author
Forward
0 new messages