Sign in to follow this  
agb12

renderChart functionality in IE 6.0+

Recommended Posts

When I use IE 6 or 7, and set a chart to display within a JavaScript enabled page inside of a table data cell, the chart does not show up at all.

 

 

 

No errors, no loading message, nothing.

 

 

 

Apparently IE cannot find div information (the dynamic div information that gets parsed when you run the renderChart function) when it is inside a table data cell.

 

 

 

I believe this to be a bug

 

 

 

I tried using the renderchartHTML function as well with the same outcome

 

 

 

note: the charts display perfectly with the exact same code in Firefox and IE 5.5

Edited by Guest

Share this post


Link to post
Share on other sites

I figured out the problem:

 

 

 

When a page has JavaScript enabled functions in it, if you do not specifically set the table data cells and table rows dimensions in pixels for the chart within your table, the auto inserted div tag that gets implemented by the renderChart function shrinks the table to a 0 width and 0 height cell, thereby making it disappear.

 

 

 

Explicitly setting the width and height of your table cells should fix the problem for IE 6, 7

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