Hi,
this is how I have done it on a recent chart and it works fine...
// Define the Column chart
var mychart = new google.visualization.ChartWrapper({
'chartType': 'ColumnChart',
'containerId': 'chart1',
'options':
{
'width': 800,
'height': 500,
'isStacked': 'true',
'legend': 'right',
'hAxis': {
'textStyle': {'fontSize': 12},
'textPosition': 'out',
'slantedText': 'true',
'slantedTextAngle': 40
'title': 'Tracked Categories',
},
'title': 'EMEA - % change month',
},
// Instruct the chart on what columns to use for display
// from the data in DataTable.
'view': {'columns': x}
});
Hope this helps
Tony
On Nov 4, 1:20 pm, Riccardo Govoni ☢ <[email protected]> wrote:
> More likely
>
> options['hAxis'] = {'title': 'asdf' };
>
> or
>
> options['hAxis'] = {};
> options['hAxis']['title'] = "asdf";
>
> Otherwise I suspect you'd end up with an undefined property when executing
> the last line without the one before it.
>
> - R.
>
> On 4 November 2011 12:31, asgallant <[email protected]> wrote:
>
>
>
>
>
>
>
> > The API is rather particular about how you set options. I usually see it
> > done in object notation, but it you have to do it this way, the proper
> > notation is probably:
>
> > options['width'] = "100%";
> > options['height'] = "300";
> > options['legend'] = "none";
> > options['hAxis']['title'] = "asdf";
> > options["vAxis']['title"] = "asdf";
>
> > --
> > 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/-/41kpxYp_-kEJ.
>
> > 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.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
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.