Dhruva

PROBLEM DISPLAYING CHARTS WITH IE

Recommended Posts

Hi,

I try to insert in my web application soma charts. When I display charts with firefox it works fine but when I open Internet Explorer I can't see any charts.

I haven't any errors.I only see a blank page.

Can somebody help me, please?

Thank you

Share this post


Link to post
Share on other sites

Hi, I'm also having the same problem. I have all other browsers running except the abominable IE.

 

 

 

here is my project:

 

http://www.automotive-management-services.com/ams_php/technical/index.php

 

 

 

username: user1

 

password: user11

 

 

 

I Plotted Fusioncharts from a database and followed the codes as written on the documentation that the package came with. I used PHP on it.

 

 

 

 

 

This is the code i used:

 

=======================================================================

 

<?php

 

//Connect to the DB

 

$link = connectToDB();

 

 

 

//$strXML will be used to store the entire XML document generated

 

//Generate the chart element

 

$strXML = "";

 

 

 

//Fetch all records

 

$strQuery = "SELECT

 

tb_make.Make,

 

tb_make.Qty,

 

tz_members.usr

 

FROM

 

tb_make

 

Inner Join tz_members ON tb_make.cusid = tz_members.cusid

 

WHERE

 

tb_make.cusid = '". $_SESSION['cusid'] ."' ";

 

$result = mysql_query($strQuery) or die(mysql_error());

 

 

 

//Iterate through each factory

 

if ($result) {

 

while($ors = mysql_fetch_array($result)) {

 

 

 

$strXML .= "";

 

 

 

 

 

}

 

}

 

mysql_free_result($result);

 

mysql_close($link);

 

 

 

//Finally, close element

 

$strXML .= "";

 

 

 

$strXML .= "";

 

$strXML .= "";

 

$strXML .= "";

 

$strXML .= "";

 

 

 

$strXML .= "";

 

$strXML .= "";

 

$strXML .= "";

 

$strXML .= "";

 

 

 

$strXML .= "";

 

$strXML .= "";

 

//Create the chart - Pie 3D Chart with data from $strXML

 

echo renderChart("Charts/Pie3D.swf", "", $strXML, "FleetMake", 1000, 400, false, false);

 

?>

 

========================================================================================

 

 

 

I hope you can help me with this ASAP, as my boss is using IE. (How i wish the switch to other browsers!)

 

 

 

 

 

Thanks in advance!

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :D

We have attached the screen-shot of the FusionCharts.js obtained from the "IE Developer Tool Console" which display that the path mentioned for the swf file is getting appended with "../" .

Ref.- swfNode += '<param name="movie" value="../'+ this.getAttribute('swf') +'" />';

As a result the chart is failing to locate the swf file and for which the chart is not getting rendered on the browser page for IE browser.

image.zip

Share this post


Link to post
Share on other sites

Hi,

This issue might be occuring in case you are using percent value instead of absolute pixel value for the width in the chart. This is a known issue of IE when the chart gets renedered.

Our next release, i.e, FusionCharts v3.2 would be supporting dynamic resizing of the charts and would take care of all these issues.

Thank you for your continued patience and support.

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