Sign in to follow this  
kamatam

No data to display ISSUE

Recommended Posts

Hi

I am using FusionCharts Free. I am unable to see the chart. The message "No data to display" is shown.

Here is the XML I am using:

<graph rotateNames='0' animation='1' numdivlines='4'  baseFont='Arial'  baseFontSize='12' 

bgColor='F6BD0F' bgAlpha='40'   showAlternateHGridColor='1' AlternateHGridAlpha='30'   AlternateHGridColor='F6BD0F' divLineColor='F6BD0F' divLineAlpha=

80' canvasBorderThickness='1'  canvasBorderColor='8BBA00' decimalPrecision='0' caption=' All by Commercial Model' >  <categories font='Arial' fontSi

e='12'> <category name='Cargo Only'/> </categories> <dataset seriesname='Data Series 1' color='B3AA00' alpha='70' showValues='0' > <set value='41.5'/>

</dataset> <dataset seriesname='Data Series 1' color='B3AA00' alpha='70' showValues='0' > <set value='41.5'/> </dataset> <trendLines> <line startVal

e='20'  endValue='35' color='9D080D' thickness='2'  alpha='20'   showOnTop='0' displayValue='Trend 1' isTrendZone='1'/> </trendLines>  </graph>

This is the script , im using in my jsp... to invoke

<script type="text/javascript">

 

if(document.getElementById('xmlString').value != ''){

 var swfFilePath ="<%=path%>/fusioncharts/FCF_Column3D.swf";

 //alert(swfFilePath);

 var myChart = new FusionCharts(swfFilePath, "myChartId", "900", "425");

 alert("hi->"+document.getElementById('xmlString').value);

 myChart.setDataXML(document.getElementById('xmlString').value);

 myChart.render("chartdiv");

 }

 else{

 document.getElementById('noChartdiv').style.display='block';

 document.getElementById('chartdiv').style.display='none';

 }

</script>

 

I have also included "FusionCharts.js" file...

Its entering into setDataXML() and render() , But still its not able to generate

 

Can any one help me with this issue.

Thxs in adv

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Welcome to FusionCharts Forum. :)

You encountered with this error since you used a multi-series chart XML but used a single series chart.

 

With this XML please consider using a multi-series chart swf e.g. FCF_MSColumn3D.swf.

Hope this helps. :D

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