Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.charts.chartClasses 
IStackable2 
Packagemx.charts.chartClasses
Interfacepublic interface IStackable2 extends IStackable
Implementors AreaSeries, BarSeries, ColumnSeries

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The IStackable2 interface is implemented by any series that can be stacked. Stacking sets (ColumnSet, BarSet, AreaSet) require that any sub-series assigned to it when stacking implement this interface if they should show negative values also while stacking.



Public Properties
 PropertyDefined By
 Inheritedstacker : StackedSeries
The StackedSeries associated with this series.
IStackable
 InheritedstackTotals : Dictionary
[write-only] The stack totals for the series.
IStackable
Public Methods
 MethodDefined By
 Inherited
stack(stackedXValueDictionary:Dictionary, previousElement:IStackable):Number
Stacks the series.
IStackable
  
stackAll(stackedPosXValueDictionary:Dictionary, stackedNegXValueDictionary:Dictionary, previousElement:IStackable2):Object
Stacks the series.
IStackable2
Method Detail

stackAll

()method
public function stackAll(stackedPosXValueDictionary:Dictionary, stackedNegXValueDictionary:Dictionary, previousElement:IStackable2):Object

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Stacks the series. Normally, a series implements the updateData() method to load its data out of the data provider. But a stacking series performs special operations because its values are not necessarily stored in its data provider. Its values are whatever is stored in its data provider, summed with the values that are loaded by the object it stacks on top of.

A custom stacking series should implement the stack() method by loading its data out of its data provider, adding it to the base values stored in the dictionary to get the real values it should render with, and replacing the values in the dictionary with its new, summed values.

Parameters

stackedPosXValueDictionary:Dictionary — Contains the base values that the series should stack on top of. The keys in the dictionary are the x values, and the values are the positive x values.
 
stackedNegXValueDictionary:Dictionary — Contains the base values that the series should stack on top of. The keys in the dictionary are the x values, and the values are the negative y values.
 
previousElement:IStackable2 — The previous element in the stack. If, for example, the element is of the same type, you can use access to this property to avoid duplicate effort when rendering.

Returns
Object — An object representing the maximum and minimum values in the newly stacked series.