Your data is not structured correctly for a PieChart.  The PieCharts expect 
two columns of data: one "string" type (for the slice labels) and one 
"number" type (for the slice values).  Also, the PieCharts do not support 
the "tooltip" column role.

On Sunday, November 17, 2013 1:25:05 PM UTC-5, Sandeep Ambekar wrote:
>
> Hi,
>
> I tried this.. but it didnt work..
>
> here is how my script looks.
>
> var SRdata = google.visualization.arrayToDataTable([
> ['Manager', 
> 'JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC','hint'],
> ['ABC',0,0,0,0,0,0,0,8,1,0,0,0,'XYZ'],
> ['EFG',1479,1288,1348,1374,1589,1420,1448,1285,1263,1573,0,0,'IJK']]);
> SRdata.setColumnProperty(13, 'role', 'tooltip');
>
> var pieChart2 = new google.visualization.ChartWrapper({
>           'chartType': 'ColumnChart',
>           'containerId': 'chart_div2',
>           'options': {
> tooltip: {isHtml: false, legend: 'none'},
>             'width': 1300,
>             'height': 400, 
> 'title': 'Manager CNT',
>             'hAxis': {title: 'Manager', titleTextStyle: {color: 'Black'}},
> 'vAxis': {
> 'title': 'RATE counts', 
> 'titleTextStyle': {color: 'Black'}
> }
>           }
>         });
>
>
>
> i am using Dashboard. Please suggest.
>
> On Monday, 20 May 2013 19:22:32 UTC+5:30, asgallant wrote:
>>
>> the #arrayToDataTable method doesn't support setting column roles.  You 
>> can set the role explicitly after the DataTable is created like this:
>>
>> dataTable.setColumnProperty(3, 'role', 'tooltip');
>>
>> On Monday, May 20, 2013 5:45:21 AM UTC-4, John wrote:
>>>
>>> Hi! 
>>> I'm using a Chart in which I like that the tooltip is a info different 
>>> to the Chart.
>>> I'm using a ArrayToDataTable, but I don't know how I can do that. 
>>>
>>>
>>> That's is the code:
>>>
>>>             var dataTable = google.visualization.arrayToDataTable([
>>>   ['Year', 'Info1', 'Info2', 'Name' role:'tooltip'],
>>> ['1958',0,1,'Name1'],
>>> ['1961',0,1,'Name2']
>>> ]);
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to