Sign in to follow this  
Guest Basundhara Ghosal

'No Data To Display'

Recommended Posts

{xmlData} is not working with 'No Data To Display'

but {xmlData2} is working

diffrence is dataset length.

ArrayCollection,xmllist also same problem. 

<code>

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="com.fusioncharts.components.*">

  <ns1:FusionCharts id="fc" x="10" y="10" FCChartType="MSCombi2D" FCDataXML="{xmlData2}" />

  <mx:Script>

  <![CDATA[

  // Create a string with valid chart data and with xml tags

  [bindable]

  private var xmlData:String="<chart caption='Business Results 2004 vs 2005 vs 2006'" +

  "xAxisName='Month' showValues='0' numberPrefix='$'>" +

  "<categories>" +

  " <category label='Jan'/>"  +

  " <category label='Feb'/>"  +

  " <category label='Mar'/>"  +

  " <category label='Apr'/>"  +

  " <category label='May' />" +

  " <category label='Jun' />" +

  "</categories>" +

  "<dataset seriesName='2007'>" +

  " <set value='27400' />" +

  " <set value='29800'/>"  +

  " <set value='25800' />" +

  " <set value='26800' />" +

  " <set value='29600' />" +

  " <set value='32600' />" +

  "</dataset>" +

  "<dataset seriesName='2006'>" +

  " <set value='27400' />" +

  " <set value='29800'/>"  +

  " <set value='25800' />" +

  " <set value='26800' />" +

  " <set value='29600' />" +

  " <set value='32600' />" +

  "</dataset>" +

  "<dataset seriesName='2005' renderAs='Area'>" +

  " <set value='10000'/>"  +

  " <set value='11500'/>"  +

  " <set value='12500'/>"  +

  " <set value='15000'/>"  +

  " <set value='11000' />" +

  " <set value='9800' />"  +

  "</dataset>" +

  "<dataset seriesName='2004' renderAs='Line'>" +

  " <set value='7000'/>"  +

  " <set value='10500'/>" +

  " <set value='9500'/>"  +

  " <set value='10000'/>" +

  " <set value='9000' />" +

  " <set value='8800' />" +

  "</dataset>" +

"</chart>";  

  [bindable]

  private var xmlData2:String="<chart caption='Business Results 2004 vs 2005 vs 2006'" +

  "xAxisName='Month' showValues='0' numberPrefix='$'>" +

  "<categories>" +

  " <category label='Jan'/>"  +

  " <category label='Feb'/>"  +

  " <category label='Mar'/>"  +

  " <category label='Apr'/>"  +

  "</categories>" +

  "<dataset seriesName='2007'>" +

  " <set value='27400' />" +

  " <set value='29800'/>"  +

  " <set value='25800' />" +

  " <set value='26800' />" +

  "</dataset>" +

  "<dataset seriesName='2006'>" +

  " <set value='27400' />" +

  " <set value='29800'/>"  +

  " <set value='25800' />" +

  " <set value='29600' />" +

  "</dataset>" +

  "<dataset seriesName='2005' renderAs='Area'>" +

  " <set value='10000'/>"  +

  " <set value='11500'/>"  +

  " <set value='15000'/>"  +

  " <set value='9800' />"  +

  "</dataset>" +

  "<dataset seriesName='2004' renderAs='Line'>" +

  " <set value='7000'/>"  +

  " <set value='9500'/>"  +

  " <set value='9000' />" +

  " <set value='8800' />" +

  "</dataset>" +

"</chart>";  

  ]]>

  </mx:Script>

</mx:Application>

</code>

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :unsure:

Currently our development team is looking into the issue.

We will get back to you as soon as possible.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please let us know the version of the chart that you are using?

Also, could you please try testing the application in normal Run-mode and not in Debug-mode?

Awaiting your reply.

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