Okay thanks 

On Tuesday, September 23, 2014 5:41:15 AM UTC+5:30, Andrew Gallant wrote:
>
> Sorry, I don't know how I missed this, but there is no "chartOptions" 
> option either; when creating a chart, all options are chart options:
>
> var chart = new google.visualization.ChartWrapper({
>     chartType: 'ColumnChart',
>     containerId: 'chart_div',
>     dataTable: data,
>     options: {
>         'title': 'CustomerSalesData',
>         'hAxis': {
>             'title': 'Year',
>             'titleTextStyle': {
>                 color: 'red'
>             },
>             'slantedText': true
>         },
>         'vAxis': {
>             gridlines: {
>                 'color': 'gray',
>                 'count': 20
>             }
>         },
>         'chartArea': {
>             'top': 70,
>             'left': '5%',
>             'height': 550,
>             'width': '65%'
>         }
>     }
> });
>
> On Saturday, September 20, 2014 8:30:58 AM UTC-4, Shivani Kanakhara wrote:
>>
>> Hers is the fiddle. http://jsfiddle.net/shivani_1001/wy1wy6qh/  
>> only the title is displayed. hAxis title is not displayed . The text on 
>> hAxis is set to slanted but it does not appear so.
>>
>> On Saturday, September 20, 2014 5:13:04 AM UTC+5:30, Andrew Gallant wrote:
>>>
>>> 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