Data.xml如下:
<graph caption='' xAxisName='' yAxisName='' decimalPrecision='0' formatNumberScale='0' baseFont='宋体' baseFontSize='18' bgColor='#F1F1F1' borderColor='#F1F1F1' labelDisplay='wrap' >
<set label='John' value='420' />
<set label='Mary' value='295' />
<set label='国人万岁FusionCharts/FusionCharts/万岁哐哐哐才' value='523' />
</graph>
引用页面如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";;;>
<html xmlns="http://www.w3.org/1999/xhtml";;;><head runat="server"> <title></title> <script language="javascript" src="FusionCharts.js"></script> <script language="javascript" type="text/javascript"> function Render() { var chart1 = new FusionCharts("FusionCharts/Column2D.swf", "ChId1", "80%", '50%', "0", "0", "FFFFFF", "exactFit");chart1.setDataURL("Data.xml");chart1.render("chart1div"); } </script></head><body onload="Render()" > <div id="chart1div">This text is replaced by the chart</div></body></html>