Sign in to follow this  
shiv

Show Empty Fusion Chart When There Is No Data To Display

Recommended Posts

Hi,

I am using FusionCharts, its working fine.

 

But one of my requirments is ' when there is no data we show message as 'No data to Display'. 

But we need to show the empty report with the same message.

how to achieve this?

 

Please can you help me?

 

Share this post


Link to post
Share on other sites

Hi,

I am using FusionCharts, its working fine.

 

But one of my requirments is ' when there is no data we show message as 'No data to Display'. 

But we need to show the empty report with the same message.

how to achieve this?

 

Please can you help me?

Hi,

 

Please use "configure()" function to set chart messages.

Ref.- http://docs.fusioncharts.com/charts/contents/?advanced/ChartMessages.html

 

For instance, if you wish to set chart "ChartNoDataText" message, you need to pass the attribute name and the message text to "configure()" before rendering the chart.

<div id="chartContainer">FusionCharts XT will load here</div>
<script type="text/javascript"><!--
  var myChart = new FusionCharts("Column2D.swf", "myChartId", "300", "250", "0", "1");
  myChart.setXMLData("<chart></chart>");
  myChart.configure("ChartNoDataText", " ");
  myChart.render("chartContainer");
// --></script>
 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Thanks Sanjukta for your reply. :)

 

But I need something like, if its column chart then it should look like

 

 

    |

    |
Y  |

    |    No Data To display

    |

    |____________________

                Some Value(X)

 

 

X and Y axis should be visible with the message. Is it possible?

 

I hope you can understand my drawing, as I am not good at.  :)

Thanks.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi Shiv,

 

The feature which you are trying to implement is not possible.  :(

 

You can not display message in the data-plot area.

 

Hope this helps!

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