Sign in to follow this  
a.premkumar

Chart Is Not Visible In Div Element But The Xml Data Is Fine

Recommended Posts

Hi,

 

I am getting xml for the chart from server and display it with the help of script. The xml from server is good. I have double checked it. Now, the problem is, target div element, does not show the chart. I am using jQuery Ajax call to get server data, place the received 'html' content into div. But for some reason this is not showing the chart visual. Just shows blank space instead of it. No errors are exibited by Javascript. It would be great if some one could help me on this.

 

P.S: The same process works fine with the use of <object> tag. But doesn't do well with div.

 

Regards,

Premkumar

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi Premkumar,

 

A warm welcome tom FusionCharts Forum! smile.gif

 

Can you please provide some information on following points?

 

> What FusionCharts version are you using?

 

> Can you please share the screen-shot of the same?

 

> Also, send us the sample code as well as chart XML.

Share this post


Link to post
Share on other sites

This problem was solved. Thanks. But currently facing another problem. In IE8, the charts are not loading properly. Some charts half-load, stay as half-visible. i'll attach the screen shot. My FusionChart version is 3.2.4-sr1.9888.

 

Sample code:


<div id="macroBarChartDiv"  style="height:100%;"></div>
<script type="text/javascript">
if  ( FusionCharts("macroBarChartDivId"))
	FusionCharts("macroBarChartDivId").dispose();
var myChart = new FusionCharts( "<%=swfpath%>","macroBarChartDivId", "100%", "300","0","1");
myChart.setXMLData("<%=xmlStringForFusionColumnChart%>");
myChart.setTransparent(true);
myChart.render("macroBarChartDiv");
</script>

 

Regards,

Premkumar

post-33558-0-01192500-1355316672_thumb.png

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Can you please try upgrading to the latest version(FusionCharts v3.2.2 SR5)?

 

Also, please share the XML data for testing purposes.

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