Sha256: 1a7ac88587f8408800c803b1e37d6a7a85d5ed18efcc2583177a42175b499c94
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
define("dojox/charting/plot2d/StackedColumns", ["dojo/_base/declare", "./Columns", "./commonStacked"], function( declare, Columns, commonStacked){ return declare("dojox.charting.plot2d.StackedColumns", Columns, { // summary: // The plot object representing a stacked column chart (vertical bars). getSeriesStats: function(){ // summary: // Calculate the min/max on all attached series in both directions. // returns: Object // {hmin, hmax, vmin, vmax} min/max in both directions. var stats = commonStacked.collectStats(this.series); this._maxRunLength = stats.hmax; stats.hmin -= 0.5; stats.hmax += 0.5; return stats; // Object }, getDataLength: function(run){ return this._maxRunLength; }, getValue: function(value, index, seriesIndex, indexed){ var y,x; if(indexed){ x = index; y = commonStacked.getIndexValue(this.series, seriesIndex, x); }else{ x = value.x - 1; y = commonStacked.getValue(this.series, seriesIndex, value.x); y = y ? y.y: null; } return {y:y, x:x}; } }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dojox-rails-0.11.0 | vendor/assets/javascripts/charting/plot2d/StackedColumns.js.uncompressed.js |