<div id ="chart1" style="color:red"></div>
<script type="text/javascript">
window.onload = function(){
var chart1 = new FusionCharts('fusioncharts/SSGrid.swf', "chart1", document.body.clientWidth*0.2, "300", "0", "1");
chart1.setTransparent(true);
chart1.setDataURL("SSGrid.xml");
chart1.render("chart1");
}
</script>
SSGrid.xml:
<chart caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showValues='0' decimals='0' formatNumberScale='0' labelDisplay='Rotate'>
<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' />
</chart>
It works when the value is number ,but when i change it to string ,it does't work.
<chart caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showValues='0' decimals='0' formatNumberScale='0' labelDisplay='Rotate'>
<set label='Jan' value='apple' />
<set label='Feb' value='banana' />
<set label='Mar' value='cherry' />
<set label='Apr' value='cumquat' />
<set label='May' value='haw' />
<set label='Jun' value='fig' />
</chart>
What can I do? waiting for your answer.