StackedColumnSeries.js revision ee60e5568372ba636aa7eac094d936deadf1ef83
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * The StackedColumnSeries renders column chart in which series are stacked vertically to show
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * their contribution to the cumulative total.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @class StackedColumnSeries
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @extends ColumnSeries
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @uses StackingUtil
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp * @constructor
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippY.StackedColumnSeries = Y.Base.create("stackedColumnSeries", Y.ColumnSeries, [Y.StackingUtil], {
drawSeries: function()
left,
this._createMarkerCache();
if(isChrome)
this._createHotspotCache();
w *= ratio;
if(!useOrigin)
negativeBaseValues = [];
positiveBaseValues = [];
if(useOrigin)
top -= h;
top -= h;
if(isChrome)
this._clearMarkerCache();
if(isChrome)
this._clearHotspotCache();
if(this._markers[i])
var styles,
_getPlotDefaults: function()
var defs = {
fill:{
colors:null,
alphas: null,
ratios: null
border:{
padding:{
return defs;
ATTRS: {
type: {
value: null
value: null
* Style properties used for drawing markers. This attribute is inherited from <code>ColumnSeries</code>. Below are the default values:
* <dt>color</dt><dd>Color of the fill. The default value is determined by the order of the series on the graph. The color
* <code>["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]</code>
* <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd>
* <dt>color</dt><dd>Color of the border. The default value is determined by the order of the series on the graph. The color
* <code>["#205096", "#b38206", "#000000", "#94001e", "#9d6fa0", "#e55b00", "#5e85c9", "#adab9e", "#6ac291", "#006457"]</code>
* <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd>
* <dt>over</dt><dd>hash containing styles for markers when highlighted by a <code>mouseover</code> event. The default
* values for each style is null. When an over style is not set, the non-over value will be used. For example,