You should be able to call the #setOption method of the chart object to set the width. If the chart width is changing when this code is run, though, you might want to ask the guy who wrote it why that is happening.
On Wednesday, November 20, 2013 3:50:20 PM UTC-5, Troy Simpson wrote: > > Hey, I'm using a chart in a google docs spreadsheet. The spreadsheet is > collecting logging data so is growing constantly. I have a gapps script > that triggers 'on edit' to expand the range of the chart which works fine. > However, whenever the range is expanded for the chart, the width collapses > down to the minimum width. I thought about setting the size manually but I > can't find out how to do that on an existing chart, any ideas? > > The chart range expander comes from here: > > > http://googleappsdeveloper.blogspot.com.au/2012/06/programmatically-managing-charts-in.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. For more options, visit https://groups.google.com/groups/opt_out.
