Car/Css/ichartjs/src/ichart.bar2d.js
(完整代码) 766B/**
* @overview this component will draw a bar2d chart.
* @component#@chart#iChart.Bar2D
* @extend#iChart.Bar
*/
iChart.Bar2D = iChart.extend(iChart.Bar, {
/**
* initialize the context for the pie
*/
configure : function() {
/**
* invoked the super class's configuration
*/
iChart.Bar2D.superclass.configure.call(this);
this.type = 'bar2d';
},
doEngine:function(_,bh,s,S,So,W,h2,gw,x,y,x0){
iChart.each(_.data,function(d, i) {
_.rect(_,d, i,x,y + i * gw,W,S,So);
_.doLabel(_,i, d.name, x0, y + i * gw + h2);
}, _);
},
doConfig : function() {
iChart.Bar2D.superclass.doConfig.call(this);
/**
* start up engine
*/
this.engine(this);
}
});
iChart.register('Bar2D');
/**
* @end
*/
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。