Hi everyone,
My chart is displayed correctly. However, at random times, "No data to display" appears. When I refresh it, its ok and when the bug occurs, my dataprovider is valid. I would like to know:
1. If this bug has been solved
2. If their is a property in flex to verify if the chart or instead "No data to display" has been displayed. For example: if something resembling something like this exists:
myChart.isDisplayed = true;
This could have been used to verify if the chart has been displayed; else it can be called again (in my context, the dataprovider will never be empty).
Thanx for helping,
Irshad
Page 1 of 1
"no Data To Display" Appears Randomly, Even If Dataprovider Is Valid.
Other Replies To This Topic
#2
Posted 22 March 2012 - 09:43 AM
--- Hi all ---
I finally found the solution..
//Add a "FCNoDataToDisplayEvent" eventlistener:
myChart.addEventListener(FCEvent.FCNoDataToDisplayEvent, myFunc);
//The function called by the "FCNoDataToDisplayEvent" eventlistener:
private function myFunc (e:FCEvent):void
{
if(e.param != null)
{
//Recall the function which constructs the graph. Note: if ever in some cases it is normal that the graph doesn't display data, you may use: if(e.param != null && myDataprovider != null)
}
}
Hope it will be useful to you,
Irshad
I finally found the solution..
//Add a "FCNoDataToDisplayEvent" eventlistener:
myChart.addEventListener(FCEvent.FCNoDataToDisplayEvent, myFunc);
//The function called by the "FCNoDataToDisplayEvent" eventlistener:
private function myFunc (e:FCEvent):void
{
if(e.param != null)
{
//Recall the function which constructs the graph. Note: if ever in some cases it is normal that the graph doesn't display data, you may use: if(e.param != null && myDataprovider != null)
}
}
Hope it will be useful to you,
Irshad
Other Replies To This Topic
#3
Posted 22 March 2012 - 10:04 AM
Hi,
I am glad, you have managed to resolve your issue.
Thanks for the solution. Appreciate your efforts.
I am glad, you have managed to resolve your issue.
Thanks for the solution. Appreciate your efforts.
Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/
Thanks,
Sumedh
Follow us @Twitter!
http://documentation...sioncharts.com/
Thanks,
Sumedh
Follow us @Twitter!
Other Replies To This Topic
Page 1 of 1

Back to top
MultiQuote