Hi all!
I have some problem when I trying repeat example "Saving to server disk" from online help.
I'm using ASP.Net C# and default settings.
<script type="JavaScript" src="~/Scripts/FusionCharts.js"></script>
<script type="text/javascript">
//Callback handler method which is invoked after the chart has saved image on server.
function FC_Exported(objRtn) {
if (objRtn.statusCode == "1") {
alert("The chart was successfully saved on server. The file can be accessed from " + objRtn.fileName);
} else {
alert("The chart could not be saved on server. There was an error. Description : " + objRtn.statusMessage);
}
}
</script>
</head>
<body bgcolor="#ffffff">
<div id="chartdiv" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div>
<script type="text/javascript">
// Create the chart. Make sure registerWithJS is set to 1, else callback cannot happen.
var myChart = new FusionCharts("~/FusionCharts/Column2D.swf", "myChartId", "400", "300", "0", "1");
myChart.setXMLUrl("~/XMLFile1.xml");
myChart.render("chartdiv");
</script>
xml file:
<chart yAxisName='Sales Figure' caption='Top 5 Sales Person' numberPrefix=' useRoundEdges='1'
bgColor='FFFFFF,FFFFFF' showBorder='0' exportEnabled='1' exportHandler='FCExporter.aspx.cs' exportAtClient='0' exportAction='download' >
<set label='Alex' value='25000' />
<set label='Mark' value='35000' />
<set label='David' value='42300' />
<set label='Graham' value='35300' />
<set label='John' value='31300' />
</chart>
FCExporter.aspx.cs file as in example.
But I don't see chart .
Where I'm wrong.
Thanks for help.