kamwailai Report post Posted September 21, 2011 hi, i am specifying '100%' for both width and height when rendering the chart. but the chart generated does not fill up the whole page. can anyone help? attached is the html code src.htm Share this post Link to post Share on other sites
Guest Angshu Report post Posted September 21, 2011 Hi, Welcome to FusionCharts Forum! When you set percent size to a chart, it tries to get the width/height of its parent container. It seems that the container where you are rendering the chart is not set with a proper height when the chart is rendered into it. For example, if you have a container <div id="chartContainer"> and this DIV is not set with an absolute or relative height, the DIV's height will be zero. When a chart is rendered in this DIV with 100% height, the chart would try to derive the height of the parent DIV which is zero. The chart would render zero pixel as height. Please try once setting absolute height to the chart or the constrainer element and check. Hope this helps. Share this post Link to post Share on other sites
kamwailai Report post Posted September 21, 2011 Hi Ansu, the strange part is that the chart will scale with the width specified in % like 200% without me specifiying the width of the DIV. It only the height that doesnt seems to work which leads me to think that it could be a bug? sincerely hope that you can look further into this matter. regards, Hi, Welcome to FusionCharts Forum! When you set percent size to a chart, it tries to get the width/height of its parent container. It seems that the container where you are rendering the chart is not set with a proper height when the chart is rendered into it. For example, if you have a container <div id="chartContainer"> and this DIV is not set with an absolute or relative height, the DIV's height will be zero. When a chart is rendered in this DIV with 100% height, the chart would try to derive the height of the parent DIV which is zero. The chart would render zero pixel as height. Please try once setting absolute height to the chart or the constrainer element and check. Hope this helps. Share this post Link to post Share on other sites