You should not wrap any options in a "ui" option for the charts.  There are 
controls with a "ui" option, but no charts with one.  Your wrapper should 
look like this:

var chart = new google.visualization.ChartWrapper({
    chartType: 'ColumnChart',
    containerId: 'chart_div',
    dataTable: data,
    options: {
        'title': 'CustomerSalesData',
        'chartOptions': {
            'hAxis': { 'title': 'Year', 'titleTextStyle': { color: 'red'}, 
'slantedText': true },
            'vAxis': { gridlines: { 'color': 'gray', 'count': 20} },
            'chartArea': {
                'top': 70,
                'left': '5%',
                'height': 550,
                'width': '65%'
            }
        }
    }
});

On Friday, September 19, 2014 7:18:01 AM UTC-4, Shivani Kanakhara wrote:
>
> HI, I am using chart wrapper for generating column chart.
> But i cannot set the haxis title and few properties. Cannot find out the 
> mistake. Pls help
> Here's my code.
> The title is displayed correctly. But all the other options inside 
> 'ui'--haxis,vaxis,chartArea  these do not work.
> Am i writing the code correctly?
>
>  var chart = new google.visualization.ChartWrapper({
>                 chartType: 'ColumnChart',
>                 containerId: 'chart_div',
>                 dataTable: data,
>                 options: {
>                     'title': 'CustomerSalesData',
>                     'ui': {
>                         'chartOptions': {
>                                         'hAxis': { 'title': 'Year', 
> 'titleTextStyle': { color: 'red'}, 'slantedText': true },
>                                         'vAxis': { gridlines: { 'color': 
> 'gray', 'count': 20} },
>                                         'chartArea': {
>                                             'top': 70,
>                                             'left': '5%',
>                                             'height': 550,
>                                             'width': '65%'
>                                            }
>                                       }
>                     }
>                 }
>             });
>

-- 
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/d/optout.

Reply via email to