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.