| 1 | define(["dojo/_base/declare", "dojo/_base/array", "./Bars", "./common"], |
| 2 | function(declare, array, Bars, dc){ |
| 3 | |
| 4 | return declare("dojox.charting.plot2d.ClusteredBars", Bars, { |
| 5 | // summary: |
| 6 | // A plot representing grouped or clustered bars (horizontal bars) |
| 7 | getBarProperties: function(){ |
| 8 | var length = this.series.length; |
| 9 | array.forEach(this.series, function(serie){if(serie.hidden){length--;}}); |
| 10 | var f = dc.calculateBarSize(this._vScaler.bounds.scale, this.opt, length); |
| 11 | return {gap: f.gap, height: f.size, thickness: f.size}; |
| 12 | } |
| 13 | }); |
| 14 | }); |