Sign in to follow this  
RAMMURALY

Weird Chart Cropping Problem

Recommended Posts

Hi,

We are evaluating fusion charts for our application. I have a Telerik docking control (a table based container for dragging contents) . We are using the supplied function "RenderChart" to generate chart javascript and place the output inside the above said container.

The chart seems to work some times but infrequently we end up with chart totally cropped? If i refresh the browser some times the chart will redraw itself properly and some time it results in same behaviour. I have attached the cropped image for your reference. The resulting HTML has all properties set correctly including width and height.

We are using a dynamically generated disk based xml file. Has any one seen such a cropped behaviour , Fusion team your help would be most appreciated.

Murali

post-389-128441563872_thumb.jpg

post-389-128441563878_thumb.jpg

Share this post


Link to post
Share on other sites

When embedding the chart, try adding this to the SWF:

Column3D.swf?chartWidth=xxx&chartHeight=yyy

Replace xxx and yyy with your actual values.

Share this post


Link to post
Share on other sites

Thank you for your response Pallav.

Your solution did not solve the problem. But it made our team think a bit different. We found a really weird behaviour with Internet Explorer. The aforementioned issue cropped up when we set the Width and Height of the chart in string values i.e as 300px and 250px.

We found the problem luckily as I forgot to add "px" to the width and height values to a particular chart and that chart was always drawn correctly. Then we compared the two HTMLs and found the only difference being the px added at the end of Width & height variables. Once we removed them, it rendered like a charm!!

Thanks for the help.

Murali

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