Jump to content


"no Data To Display" Still Exports


  • Please log in to reply
2 replies to this topic

#1 Cheiro

Cheiro

    Forum Newbie

  • Members
  • 8 posts

Posted 17 August 2011 - 04:52 AM

Hi,

Sometimes when there is no data, the chart shows "no Data to display" still the export of chart works and it gives a blank image.

is there a way to check if the chart has given " no data to display" error and stop export?

Regards,
Cheiro

#2 Sanjukta

Sanjukta

    Supreme Being

  • Administrators
  • 1926 posts

Posted 17 August 2011 - 10:25 AM

Hi,

Could you please send us a Live URL or an erroneous sample so that we can test it?

Looking forward to your feedback.
Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Thanks,
Sanjukta

Follow us @Twitter!

#3 Cheiro

Cheiro

    Forum Newbie

  • Members
  • 8 posts

Posted 19 August 2011 - 05:53 AM

Hi,

Could you please send us a Live URL or an erroneous sample so that we can test it?

Looking forward to your feedback.


Hi,

Please find the attached screen shots of chart export and code...

the page renders chart using below here the xml has no data... intentionally
 protected void Page_Load(object sender, EventArgs e)
  	{
       		Literal1.Text = FusionCharts.RenderChart("../FusionCharts/Column3D.swf", "../FusionCharts/SaveDataEmpty.xml", "", "myFirst", "600", "300", false, true);
  	}


The xml is like so... the data inside is intentionally commented to simulate no data

<chart exportEnabled='1' exportAction='Save' exportAtClient='0' exportHandler='../Export_Handler/FCExporter.aspx'
caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showValues='0' formatNumberScale='0' showBorder='1' >
  <!--<set label='Jan' value='462' />
  <set label='Feb' value='857' />
  <set label='Mar' value='671' />
  <set label='Apr' value='494' />
  <set label='May' value='761' />
  <set label='Jun' value='960' />
  <set label='Jul' value='629' />
  <set label='Aug' value='622' />
  <set label='Sep' value='376' />
  <set label='Oct' value='494' />
  <set label='Nov' value='761' />
  <set label='Dec' value='960' />-->
</chart>


Even if the chart shows no data, it allows it to export which results in generation of a blank image.

Attached Thumbnails

  • ChartNoData.JPG
  • ChartExportingNoData.JPG