Google Chart Tool - Table title/name

3,162 views
Skip to first unread message

Petr Žďárský

unread,
Mar 12, 2012, 7:30:00 PM3/12/12
to google-visua...@googlegroups.com
Hi
I am newbie to Google Chart Tools. I am using two types of charts, first one is piechart that has a title option. But I can not find, how to set a title or name for table ?
Thanks for help, sorry for my English

GradualStudent

unread,
Mar 12, 2012, 10:44:16 PM3/12/12
to Google Visualization API
Pass an object with properties to chart.draw, and set the attribute
'title' on that object:

var options = {
title: 'My Daily Activities'
};

var chart = new
google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, options);


http://code.google.com/apis/chart/interactive/docs/gallery/piechart.html#Configuration_Options

Srinivas Reddy

unread,
Mar 13, 2013, 3:30:55 AM3/13/13
to google-visua...@googlegroups.com
Could u please tell me, how to give title to Table Chart. not for Pie Chart

asgallant

unread,
Mar 13, 2013, 3:47:09 AM3/13/13
to google-visua...@googlegroups.com
Table visualizations don't support titles in the API - you will have to add the title to your HTML.
Reply all
Reply to author
Forward
0 new messages