This doesn't seem to be working for me:
var link_tm_core_stats_table = new
google.visualization.Table(document.getElementById('link_tm_core_stats_table'));
google.visualization.events.addListener(link_tm_core_stats_table,
'ready', function(){
setTableWidth('Category', '300px');
});
google.visualization.events.addListener(link_tm_core_stats_table,
'sort', function(){
setTableWidth('Category', '300px');
});
link_tm_core_stats_table.draw(link_tm_core_stats_data, table_options);
On Thursday, 6 March 2014 13:54:38 UTC-6, asgallant wrote:
>
> First, when working with ChartWrappers, you have to structure the event
> listeners a bit differently. Here's what they would look like using your
> casesDetailed table as an example:
>
> google.visualization.events.addListener(casesDetailed, 'ready', function
> () {
> google.visualization.events.addListener(casesDetailed.getChart(),
> 'sort', setWidth);
> setWidth();
> });
>
> Place the code after creating the casesDetailed table, but before the
> Dashboard's draw call.
>
> On Thursday, March 6, 2014 2:08:03 PM UTC-5, Christina Sanabria wrote:
>>
>> Hi,
>>
>> I am trying to use this technique to set the width on a column in my
>> casesDetailed table. It is a table using ChartWrapper and using remote
>> data.
>>
>> I checked out the fiddle and basically understand how it works, but I'm
>> not sure where to put the snippet into my code.
>>
>> Here's my code.
>>
>> http://jsfiddle.net/christina_sanabria/L7q2X/3/
>>
>> Thanks in advance for your help!
>>
>>
>>
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/98c46076-da35-43cf-977d-d62d665ad0b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.