Sign in to follow this  
zeroed

Can not reload the chart

Recommended Posts

Hi,

 

 

 

I have a problem repainting chart.

 

 

 

I use flex and java with blazeds.

 

 

 

I used demo source code.

 

 

 

Here is my chart description: http://pastebin.com/m3c3451c8

 

(Could not insert it into this post)

 

 

 

Here is data and parameters definition:

 

 

 


// Providing chart data as ArrayCollection to chart

[bindable]

private var cData:ArrayCollection = new ArrayCollection();



// Providing chart parameters as ArrayCollection to chart

[bindable]

private var cParams:ArrayCollection = new ArrayCollection([

{ caption:"Total visitors per day" }

]);

 

 

 

Here is listener:

 

 

 


private function totalVisitorsLoaded(event:ResultEvent):void {

 var temp:Array = event.result as Array;

 cData.removeAll();

 for (var i:Number = 0; i < temp[0].length; i++)

 {

   cData.addItem({label:temp[0][i],value:temp[1][i]});

 }

 totalVisitorsChart.FCData(cData);

 totalVisitorsChart.FCRender();

}

 

 

 

Java code (from examples):

 

 

 


public String[][] getTotalVisitors() {

 String[][] xmlData = new String[2][6];



 xmlData[0][0] = "Jan";

 xmlData[0][1] = "Feb";

 xmlData[0][2] = "Mar";

 xmlData[0][3] = "Apr";

 xmlData[0][4] = "May";

 xmlData[0][5] = "Jun";



 xmlData[1][0] = "27400";

 xmlData[1][1] = "29800";

 xmlData[1][2] = "25800";

 xmlData[1][3] = "26800";

 xmlData[1][4] = "29600";

 xmlData[1][5] = "32600";



 return xmlData;

}

 

 

 

I debugged it, listener is called, but the chart still showing "No data"..

 

 

 

What am I doing wrong?

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello :),

 

 

 

We are really excited to announce the release of FusionCharts for Flex v1.1 featuring the following:

 

 

 

- 12 new chart types: 7 new gauges including Angular gauge, LED gauge and Linear gauge, Spark chart and Bullet graphs have been added.

 

- All the gauges can fetch data in real-time and come with alert managers and message loggers.

 

- All the charts and gauges can now be natively exported as images and PDFs.

 

- The data for all the charts can be exported as CSV.

 

- Data sets can now have custom text labels instead of numeric values.

 

- The charts can handle a lot more events to help you manipulate them better.

 

- Trendlines can also have custom tool-text.

 

- Custom color palettes can be defined for the data plots.

 

 

 

Learn more about it from www.fusioncharts.com/flex. and learn what's new in FusionCharts for Flex from http://www.fusioncharts.com/flex/VersionHistory.asp.

 

 

 

Existing customers can upgrade to the new version from www.fusioncharts.com/PUC.

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