I am pretty new user to both SmartGWT and HighCharts for developing client-side user interface. I try to put a dashboard view in the main layout with four charts/tables.
I actually want to set a reflow attribute to the chart so that both the width and height can fit the container on resizing of the window.
.setReflow(booleanreflow)
method in GWT-HighCharts library can only set the width of the chart flowing with its container resizing, however the height of the chart does not quite change with the size of its window and I have to scroll down the window to see the whole charts.
Any one have suggestions or comments about how to fit the height of the chart to its container as well?
Below is a simple case for demonstration of my question:
You'll probably actually want to disable the "setReflow()" option if you're trying to run a chart within a resizeable SmartGWT panel. Checkout the "ResizeableChartCanvas" (which is a SmartGWT component) in the following post, and let us know if that resolves what you're trying to accomplish.
I am pretty new user to both SmartGWT and HighCharts for developing client-side user interface. I try to put a dashboard view in the main layout with four charts/tables.
I actually want to set a reflow attribute to the chart so that both the width and height can fit the container on resizing of the window.
method in GWT-HighCharts library can only set the width of the chart flowing with its container resizing, however the height of the chart does not quite change with the size of its window and I have to scroll down the window to see the whole charts.
Any one have suggestions or comments about how to fit the height of the chart to its container as well?
Below is a simple case for demonstration of my question:
Any suggestion and comments will be appreciated, thanks!
Last edit: Songtao Z 2012-06-19
You'll probably actually want to disable the "setReflow()" option if you're trying to run a chart within a resizeable SmartGWT panel. Checkout the "ResizeableChartCanvas" (which is a SmartGWT component) in the following post, and let us know if that resolves what you're trying to accomplish.
https://sourceforge.net/p/gwt-highcharts/discussion/general/thread/c06210f1/036d/
Also note the following thread if you're using SmartGWT resize bars:
https://sourceforge.net/p/gwt-highcharts/discussion/general/thread/abe7bf7e/
Hope that helps, but just let us know if you run into trouble.