setColumnProperties won't do what you want.  You will have to assign a 
"style" or "className" property to each cell that you want to change the 
alignment of.  These properties are described 
here<https://developers.google.com/chart/interactive/docs/gallery/table#customproperties>.
 
 Use the DataTable's setProperty method on each cell you need to change.

On Wednesday, November 28, 2012 4:37:24 AM UTC-5, Heena wrote:
>
> Thanks a lot for your replies. Yes i missed to quote the output in 
> parameter. 
>  
> Here i would need one more help.
> By default the numeric data that appears in table's columns is right 
> alligned. What can i do to allign it on left/center for few columns..?
> I have gone through the documentation and found that *
> setColumnProperties()* can be used to format the columns of a table, but 
> i cant find a proper way to implement it.
>  
>
> On Tuesday, November 27, 2012 10:28:32 PM UTC+5:30, Daniel LaLiberte wrote:
>
>> Be careful to spell "allowHtml" correctly.  It is not "allowhtml" or 
>> "allowHTML".  Unknown options are generally ignored silently.
>>
>> But asgallant's suggestion is probably more relevant since it appears 
>> your argument values are strings rather than, say, numbers which can appear 
>> without quotes.
>>
>> dan
>>
>>
>> On Tue, Nov 27, 2012 at 4:52 AM, Heena <[email protected]> wrote:
>>
>>> After setting allowhtml:true, still i am not able to call javaScrippt 
>>> function from <a href> tag. Here's a code snippet:
>>>  
>>>
>>> I want to call a java script function getJsonforCountries as soon as i 
>>> click on any link in data table.
>>>
>>> *var* formatter = *new* google.visualization.PatternFormat('<a href="#" 
>>> onclick="getJsonforCountries({0});">{0}</a>');
>>>  
>>> formatter.format(data, [0,0]);
>>> Help appreciated :)
>>>  
>>>
>>> On Thursday, November 15, 2012 12:41:39 AM UTC+5:30, asgallant wrote:
>>>
>>>> The Table visualization escapes all HTML content unless you set the 
>>>> "allowHtml" option to true.
>>>>
>>>> On Wednesday, November 14, 2012 11:55:05 AM UTC-5, Jonathon McKitrick 
>>>> wrote:
>>>>>
>>>>> I have JSON data that will contain a hyperlink, complete as html 
>>>>> markup.  I need to display this link as-is, and I think the Table is 
>>>>> scrubbing the cell content before display.  Is there a way to suppress 
>>>>> this 
>>>>> action, or do I need to break down the tag on the server side, then use a 
>>>>> PatternFormatter to rebuild it before passing it to Table for display?
>>>>>
>>>>>
>>> On Thursday, November 15, 2012 12:41:39 AM UTC+5:30, asgallant wrote:
>>>>
>>>> The Table visualization escapes all HTML content unless you set the 
>>>> "allowHtml" option to true.
>>>>
>>>> On Wednesday, November 14, 2012 11:55:05 AM UTC-5, Jonathon McKitrick 
>>>> wrote:
>>>>>
>>>>> I have JSON data that will contain a hyperlink, complete as html 
>>>>> markup.  I need to display this link as-is, and I think the Table is 
>>>>> scrubbing the cell content before display.  Is there a way to suppress 
>>>>> this 
>>>>> action, or do I need to break down the tag on the server side, then use a 
>>>>> PatternFormatter to rebuild it before passing it to Table for display?
>>>>>
>>>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google Visualization API" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/google-visualization-api/-/SaI_eNwvugEJ.
>>>
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to 
>>> [email protected].
>>> For more options, visit this group at 
>>> http://groups.google.com/group/google-visualization-api?hl=en.
>>>
>>
>>
>>
>> -- 
>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> 
>>  - 978-394-1058 <#[email protected]_>
>> [email protected]   562D 5CC, Cambridge MA
>> [email protected] 9 Juniper Ridge Road, Acton MA
>>
>>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/4UqAiPDqgwAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to