Scientific/Css/ichartjs/src/ichart.column.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @overview this class is abstract,use for config column
* @component#iChart.Column
* @extend#iChart.Chart
*/
iChart.Column = iChart.extend(iChart.Chart, {
/**
* initialize the context for the Column
*/
configure : function(config) {
/**
* invoked the super class's configuration
*/
iChart.Column.superclass.configure.call(this);
this.type = 'column';
this.set({
/**
* @cfg {Number} By default,if a width is not specified the chart will attempt to distribution in horizontally.(default to '80%')
*/
column_width : '66%',
/**
* @cfg {Number} the space of each column.this option is readOnly.(default to undefined)
*/
column_space : undefined,
/**
* @cfg {Number} the distance of column's bottom and text(default to 6)
*/
text_space : 6,
/**
* @cfg {String} the align of scale(default to 'left') Available value are:
* @Option 'left'
* @Option 'right'
*/
scaleAlign : 'left',
/**
* @cfg {<link>iChart.Rectangle</link>} Specifies option of rectangle.
*/
sub_option : {},
/**
* @cfg {<link>iChart.Text</link>} Specifies option of label at bottom.
*/
label:{}
});
this.registerEvent();
this.rectangles = [];
this.labels = [];
this.components.push(this.labels);
this.components.push(this.rectangles);
},
/**
* @method toggle or setting the visibility of rectangle
*/
toggle : function(index,state) {
index = (index||0)%this.rectangles.length;
var r = this.rectangles[index];
var l = this.labels[index];
if(typeof state =='undefined'){
后面还有 121 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。