Fusioncharts---------------Script---------------<script src=".. /.. /.. /fashioncharts/js/fusioncharts.js"Type="Text/javascript"></script>---------HTML----------<div id="Container"> </div>-----------------------js-----------------------$.ajax ({url:BasinList.url,Async:true, DataType:"JSON", data: {Method:"Getchartsdata", Datatype:BasinList.datatype, Starttime:BasinList.starttime, Endtime:BasinList.endtime, SelType:BasinList.selType, selty PeBR:BasinList.seltypeBR, CategoryList1:BasinList.CategoryList1, Dbradiova L:basinlist.dbradioval, DBStarTime:BasinList.DBStarTime, Dbendtime:basinl Ist. Dbendtime, Charttype:type}}). Done (function (data) { //var list1 = data;$.messager.progress ('Close'); //Properties http://blog.sina.com.cn/s/blog_5384392701011srl.html varDataXML ='<chart caption= "" legendborderalpha= "0" startingangle= "slicingdistance= "';//slicingdistance: Move distance When you click PieDataXML + ='basefontcolor= "000000" showlegend= "1" chartleftmargin= "0" charttopmargin= "0" chartbottommargin= "1" baseFontSize = " the"'; DataXML+='legendbgalpha= "0" bgalpha= "0" bgswfalpha= "0"'; DataXML+='tooltipbordercolor= "#9BD7F5" showpercentvalues= "1" showpercentintooltip= "0" plottooltext= "$value: $label"'//cue box style and formattingDataXML + ='palettecolors= "#8DEE93, #0098d9, #E42B6D, #05AD06" >';//Specify each pie area color$.each (data, function (I, item) {DataXML+='<set label= "'+ Item.name +'"Value="'+ Item.y +'"/>'; }); DataXML+='</chart>'; varMyChart =NewFusioncharts (".. /.. /.. fashioncharts/swf/pie3d.swf","MyChart","100%","60%","0","0"); Mychart.setdataxml (DataXML); Mychart.render ("Container"); });
Film----------------------
------------------------Highcharts------------
------------------JS---------------
<script type= "Text/javascript" src= ". /.. /.. /highstock/js/highstock.js "></script>
<script type= "Text/javascript" src= ". /.. /.. /highstock/js/highcharts-3d.js "></script>
===========================================================================
$('#container'). Highcharts ({chart: {type:'Pie', Options3d: {enabled:true, Alpha: -, Beta:0}}, CRE Dits: {enabled:false //whether to display the highcharts.com identity}, loading: {//Loading Promptstyle: {backgroundcolor:'Silver'}, LabelStyle: { Color:' White'}}, Tit Le: {text:"'}, tooltip: { Pointformat:'{series.name}: <b>{point.percentage:.1f}%</b>'}, Plotoptions: { Pie: {allowpointselect:true, cursor:'Pointer', Depth: *,//3D Piedatalabels: {enabled: true, Format:'<b>{point.name}</b>: {point.percentage:.1f}%', Style: {color: (H Ighcharts.theme&& Highcharts.theme.contrastTextColor) | |'Black' } }, Showinlegend:true}}, Leg End: {layout:'Vertical', align:' Right', VerticalAlign:'Top', x:- -, y: +, Floating:true, BorderWidth:1, BackgroundColor: ((Highcharts.theme&& Highcharts.theme.legendBackgroundColor) | |'#FFFFFF'), Shadow:true, ItemStyle: {"fontSize":"12px", "FontWeight":"Bold", "font-family":"Microsoft Ya-Black"}}, Ser IES: [{type:'Pie', Name:'City Ratio', Data:list1}] });
Look at the personal like it! Fusioncharts load slowly, falsh reason!
Reprint: http://www.cnblogs.com/blue123/p/6236240.html
Fusioncharts and Highcharts pie chart difference!