FusionCharts

     // 引入js
     <div name="chartDiv" id="chartDiv" align="center" style="margin: 0, 0, 0, 0;">
              <script type="text/javascript"> 
    	         var chartSWF = "/xy/scripts/fusioncharts/Charts/MSColumn3D.swf"+ "?ChartNoDataText=当前查询结果为空";
    	         var chart1 = new FusionCharts      
                    (chartSWF, "chartDiv","500","450", "0", "0");                   
    	         var strXML = "<chart palette='2' caption='' showLabels='1' showvalues='1' rotateNames='0' decimals='0' numberPrefix='' numberSuffix='件'  clustered='0' exeTime='1.5' showPlotBorder='0' zGapPlot='30' zDepth='90' divLineEffect='emboss' startAngX='10' endAngX='18' startAngY='-10' endAngY='-40'><categories><category label='粮食局'/><category label='林业局'/></categories><dataset seriesName='收件数' color='8BBA00' showValues='0'><set value='62' /><set value='23' /></dataset><dataset seriesName='办结数' color='F6BD0F' showValues='0'><set value='41' /><set value='14' /><set value='58' /><set value='24' /><set value='28' /><set value='25' /><set value='14' /><set value='29' /></dataset><styles><definition><style name='captionFont' type='font' size='15' /></definition><application><apply toObject='caption' styles='captionfont' /></application></styles></chart>";
    	         chart1.setDataXML(strXML);
    	         chart1.render("chartDiv");
    	      </script>
           </div>

你可能感兴趣的:(FusionCharts)