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