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?