dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
15 lines (13 loc) • 587 B
JavaScript
define(["dojo/_base/declare", "dojo/_base/array", "./Columns", "./common"],
function(declare, array, Columns, dc){
return declare("dojox.charting.plot2d.ClusteredColumns", Columns, {
// summary:
// A plot representing grouped or clustered columns (vertical bars)
getBarProperties: function(){
var length = this.series.length;
array.forEach(this.series, function(serie){if(serie.hidden){length--;}});
var f = dc.calculateBarSize(this._hScaler.bounds.scale, this.opt, length);
return {gap: f.gap, width: f.size, thickness: f.size, clusterSize: length};
}
});
});