Owd-Larrd / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Cannot Increase height of Bar Chart #455

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
2.1.1

Platform information (OS, Browser, GWT version).  Does the issue exist on
other platforms?
All Platforms

Give a Detailed description of the problem.  If possible, please include
some code that reproduces the problem and a verbatim copy of any error
messages you can find.

when you change options.setHeight to a larger height, it cannot be any larger 
than when the object was originally drawn.

It appears that the internal iFrame gets a height that is set on initial 
rendering and is not updated when you set the height again.

Workaround if you have one:
None known.

Links to the relevant Google Group posts:
N/A

Original issue reported on code.google.com by curda...@gmail.com on 1 Mar 2011 at 11:46

GoogleCodeExporter commented 9 years ago
As a workaround, could you create a new BarChart instance?

Original comment by dglibi...@google.com on 2 Mar 2011 at 2:52

GoogleCodeExporter commented 9 years ago
I found out that it was acutally a problem with Core Chart.  I reverted back 
from 1.1.1 to 1.1.0 and had the same problem with core chart.

The old bar chart library does not have the problem.

The workaround is this:
1.) when initializing the constructor set options.height to a very large number 
(e.g. 10000)
2.) in your css file set div.gwt-viz-container { overflow: hidden }
3.) call chart.draw with options set to the desired height.

Original comment by curda...@gmail.com on 2 Mar 2011 at 4:43

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 28 Oct 2011 at 4:19