Fusioncharts and Highcharts pie chart difference!

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.