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
"no Data To Display" Still Exports
Started by Cheiro, Aug 17 2011 04:52 AM
2 replies to this topic
#2
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.
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!
http://documentation...sioncharts.com/
Thanks,
Sanjukta
Follow us @Twitter!
#3
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.










