WebApplication/Admin/Js/ichartjs/src/ichart.bar.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @overview this class is abstract,use for config bar
* @component#iChart.Bar
* @extend#iChart.Chart
*/
iChart.Bar = iChart.extend(iChart.Chart, {
/**
* initialize the context for the bar
*/
configure : function() {
/**
* invoked the super class's configuration
*/
iChart.Bar.superclass.configure.call(this);
this.type = 'bar';
this.set({
/**
* @cfg {Number} Specifies the width of each bar(default to calculate according to coordinate's height)
*/
bar_height : '66%',
/**
* @cfg {Number} the space of each column.this option is readOnly.(default to undefined)
*/
bar_space : undefined,
/**
* @cfg {Number} Specifies the distance of bar's bottom and text(default to 6)
*/
text_space : 6,
/**
* @cfg {String} Specifies the align of scale(default to 'bottom') Available value are:
* @Option 'bottom'
*/
scaleAlign : 'bottom',
/**
* @cfg {<link>iChart.Rectangle</link>} Specifies option of rectangle.
*/
sub_option : {},
/**
* @cfg {<link>iChart.Text</link>} Specifies option of label at left.
*/
label : {}
});
this.rectangles = [];
this.labels = [];
this.components.push(this.labels);
this.components.push(this.rectangles);
},
/**
* @method Returns the coordinate of this element.
* @return iChart.Coordinate2D
*/
getCoordinate : function() {
return this.coo;
},
doLabel : function(_,id, text, x, y) {
_.labels.push(new iChart.Text(iChart.apply(_.get('label'), {
id : id,
text : text,
textAlign : 'right',
后面还有 99 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
