Sushil, If you create your chart with a ChartWrapper, there is a getOptions() method that will return the options. See the documentation on ChartWrapper at:
https://developers.google.com/chart/interactive/docs/reference#chartwrapperobject Otherwise, for a non-wrapped chart, there is no way to ask the chart what options you gave it. You'd have to keep track of the options and pass it around by some other means. You might be safe (JS lets you do it) just assigning the options to a property of the chart. e.g. var chart = new google.visualization.LineChart(); var options = { ... } chart.my_options = options; chart.draw(data, options); chart.my_options should still be the same options anytime later. Hope that helps. On Tue, Feb 25, 2014 at 10:45 AM, Sushil Wanjari <[email protected]>wrote: > Hi, > > Is there an option to get the draw options of a chart? > > Say for example I have created a chart using "chart.draw(data, options);" > method. Now, I need the "options" value of this chart, so that I can apply > the same options to a new chart. > > Is there any way to do that? > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "Google Chart 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-chart-api. > For more options, visit https://groups.google.com/groups/opt_out. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- You received this message because you are subscribed to the Google Groups "Google Chart 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-chart-api. For more options, visit https://groups.google.com/groups/opt_out.
