If you need to format the tooltips, you will either have to change the 
query by adding a format 
clause<https://developers.google.com/chart/interactive/docs/querylanguage#Format>,
 
or switch to using a Query object instead of the dataSourceUrl and query 
parameters of the ChartWrapper (using the Query object, you can put the 
data in a DataTable and then format the data as needed).

On Monday, September 16, 2013 10:22:45 AM UTC-4, asgallant wrote:
>
> Set the vAxis.format option to "#,###'.  Also, you are missing the closing 
> "}" for the vAxis options.
>
> google.visualization.drawChart({
>     "containerId": "customersDiv",
>     "dataSourceUrl": rootURL + "CNBCustomersServlet",
>     "query": "SELECT startDate, newCustomers, 
> runningInstalls,unmanagedInstalls 
> WHERE startDate > date '2011-05-01'",
>     "chartType": "LineChart",
>     "options": {
>         "title": ".....",
>         "titleTextStyle": {"color": "white"},
>         "backgroundColor": "7f7276",
>         "markerOpacity": "0.5",
>         "vAxis": {
>             "title": "Count",
>             "textStyle": {"color": "white"},
>             "titleTextStyle": {"color": "white"},
>             format: '#,###'
>         },
>         "hAxis": {
>             "title": "Date",
>             "textStyle": {"color": "white"},
>             "titleTextStyle": {"color": "white"}
>         },
>         legend:{
>             textStyle: {color: 'white'}
>         }
>     }
> });
>
>
> On Monday, September 16, 2013 6:52:07 AM UTC-4, Dan Coconetu wrote:
>>
>> I created a line chart this way: 
>> google.visualization.drawChart({
>>         "containerId": "customersDiv",
>>         "dataSourceUrl": rootURL + "CNBCustomersServlet",
>>         "query": "SELECT startDate, newCustomers, 
>> runningInstalls,unmanagedInstalls WHERE startDate > date '2011-05-01'",
>>         "chartType": "LineChart",
>>         "options": {
>>         "title": ".....",
>>         "titleTextStyle": {"color": "white"},
>>         "backgroundColor": "7f7276",
>>         "markerOpacity": "0.5",
>>         "vAxis": {"title": "Count",
>>         "textStyle": {"color": "white"},
>>         "titleTextStyle": {"color": "white"},
>>         "hAxis": {"title": "Date",
>>         "textStyle": {"color": "white"},
>>         "titleTextStyle": {"color": "white"}},
>>         legend:{ textStyle: {color: 'white'}}
>>         }
>>         });
>>
>>
>> How can I add a thousand separtor on vAxis? 
>> I tried adding format:'###,###' but it doesn't work..
>> Thanks in advance.
>>
>

-- 
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