Debian Codegraph @

dojox/charting/plot2d/StackedBars.js

raw symbols SCIP
1 define(["dojo/_base/declare", "dojo/_base/lang", "./Bars", "./commonStacked"],
2 function(declare, lang, Bars, commonStacked){
3
4 return declare("dojox.charting.plot2d.StackedBars", Bars, {
5 // summary:
6 // The plot object representing a stacked bar chart (horizontal bars).
7 getSeriesStats: function(){
8 // summary:
9 // Calculate the min/max on all attached series in both directions.
10 // returns: Object
11 // {hmin, hmax, vmin, vmax} min/max in both directions.
12 var stats = commonStacked.collectStats(this.series, lang.hitch(this, "isNullValue")), t;
13 stats.hmin -= 0.5;
14 stats.hmax += 0.5;
15 t = stats.hmin, stats.hmin = stats.vmin, stats.vmin = t;
16 t = stats.hmax, stats.hmax = stats.vmax, stats.vmax = t;
17 return stats; // Object
18 },
19 rearrangeValues: function(values, transform, baseline){
20 return commonStacked.rearrangeValues.call(this, values, transform, baseline);
21 }
22 });
23 });