Sign in to follow this  
kamwailai

Chart Does Not Fill Up The Cell

Recommended Posts

Guest Angshu

Hi,

Welcome to FusionCharts Forum! smile.gif

 

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

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! smile.gif

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this