Scientific/Css/ichartjs/src/ichart.columnmulti2d.js
(完整代码) 1KB/**
* @overview this component will draw a cluster column2d chart.
* @component#@chart#iChart.ColumnMulti2D
* @extend#iChart.Column
*/
iChart.ColumnMulti2D = iChart.extend(iChart.Column, {
/**
* initialize the context for the ColumnMulti2D
*/
configure : function() {
/**
* invoked the super class's configuration
*/
iChart.ColumnMulti2D.superclass.configure.call(this);
this.type = 'columnmulti2d';
this.dataType = 'complex';
this.set({
/**
* @cfg {Array} the array of labels close to the axis
*/
labels : []
});
},
doEngine:function(_,cw,s,S,So,H,w2,q,gw,x,y,y0){
iChart.each(_.columns,function(c, i) {
iChart.each(c.item,function(d, j) {
_.rect(_,d, i + '_' + j,x + j * (cw + q) + i * gw,y,H,S,So);
}, _);
_.doLabel(_, i, c.name, x - s * 0.5 + (i + 0.5) * gw, y0);
}, _);
},
doConfig : function() {
iChart.ColumnMulti2D.superclass.doConfig.call(this);
/**
* start up engine
*/
this.engine(this);
}
});
iChart.register('ColumnMulti2D');
/**
* @end
*/
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。