The default value of the vAxis.viewWindow option is null. If you override
that, then the sub-options vAix.viewWindow.min/max have default values of
"auto".
There is nothing in the API that returns the default value of an option,
however. The getOption method is intended to return the value that you set
for the option.
On Tuesday, March 19, 2013 1:03:58 PM UTC-4, Vivek More wrote:
>
> Hi,
>
> How can we get values of options which got set by default? I want to get
> value of ,vAxis.viewWindow.max'. Which got automatically set to default
> value. When I tried to get it
> with wrapper.getOption('vAxis.viewWindow.max') but it returns null.
>
> Kindly let me know how can I do it?
>
> Here is sample code I am trying
>
> ====================================
> <html>
> <head>
> <script type="text/javascript" src="http://www.google.com/jsapi
> "></script>
> <script type="text/javascript">
> google.load('visualization', '1'); // Don't need to specify chart
> libraries!
> google.setOnLoadCallback(drawVisualization);
>
> function drawVisualization() {
> var wrapper = new google.visualization.ChartWrapper({
> chartType: 'ColumnChart',
> dataTable: [['', 'Germany', 'USA', 'Brazil', 'Canada', 'France',
> 'RU'],
> ['', 700, 300, 400, 500, 600, 800]],
> options: {'title': 'Countries'},
> containerId: 'vis_div'
> });
> wrapper.draw();
> alert(wrapper.getOption('vAxis.viewWindow.max'));
> }
> </script>
> </head>
> <body style="font-family: Arial;border: 0 none;">
> <div id="vis_div" style="width: 600px; height: 400px;"></div>
> </body>
> </html>
> ====================================
>
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.