Scientific/Css/ichartjs/src/ichart.pie.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @overview the base class of pie chart
* @component#iChart.Pie
* @extend#iChart.Chart
*/
iChart.Pie = iChart.extend(iChart.Chart, {
/**
* initialize the context for the pie
*/
configure : function() {
/**
* invoked the super class's configuration
*/
iChart.Pie.superclass.configure.call(this);
this.type = 'pie';
this.set({
/**
* @cfg {Float/String} Specifies the pie's radius.If given a percentage,it will relative to minDistance.(default to '100%')
*/
radius : '100%',
/**
* @cfg {Number} initial angle for first sector.(default to 0)
*/
offset_angle : 0,
/**
* @cfg {Number(0~90)} separate angle of all sector.(default to 0)
*/
separate_angle:0,
/**
* @cfg {String} the event's name trigger pie pop(default to 'click')
*/
bound_event : 'click',
/**
* @inner {Boolean} True to make sector counterclockwise.(default to false)
*/
counterclockwise : false,
/**
* @cfg {Boolean} when label's position in conflict.auto layout.(default to true).
*/
intellectLayout : true,
/**
* @cfg {Number} Specifies the distance in pixels when two label is incompatible with each other.(default 4),
*/
layout_distance : 4,
/**
* @inner {Boolean} if it has animate when a piece popd (default to false)
*/
pop_animate : false,
/**
* @cfg {Boolean} Specifies as true it means just one piece could pop (default to false)
*/
mutex : false,
/**
* @cfg {Number} Specifies the length when sector bounded.(default to 1/8 radius,and minimum is 5),
*/
increment : undefined,
/**
* @cfg {<link>iChart.Sector</link>} option of sector.Note,Pie2d depend on Sector2d and pie3d depend on Sector3d.For details see <link>iChart.Sector</link>
后面还有 171 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。