FusionCharts Forum: "no Data To Display" Appears Randomly, Even If Dataprovider Is Valid. - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

"no Data To Display" Appears Randomly, Even If Dataprovider Is Valid.

#1 User is offline   irshad 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 22-March 12

Posted 22 March 2012 - 07:06 AM

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
0

Other Replies To This Topic

#2 User is offline   irshad 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 22-March 12

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
0

Other Replies To This Topic

#3 User is offline   Sumedh 

  • Supreme Being
  • Group: Administrators
  • Posts: 677
  • Joined: 21-December 11
  • LocationBangalore

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.
Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Thanks,
Sumedh

Follow us @Twitter!
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic