Allows stacking independent Series within the same Chart.
public Int32 StackGroup {get; set;}

Remarks


StackGroups group Series to permit several stacks of independent Series groups in the same Chart.

Example


[C#]

The following code will create 5 Series, stacked 5 high at each valueindex of the Series, (ie. 10 stacked bars)

private void button2_Click(object sender, System.EventArgs e) 
{
barSeries1.FillSampleValues(6);
barSeries2.FillSampleValues(6);
barSeries3.FillSampleValues(6);
barSeries4.FillSampleValues(6);
barSeries5.FillSampleValues(6);
barSeries1.MultiBar = MultiBars.Stacked;
}

The following code will create 2 StackGroups, one with 2 Series and the other with 3, plotting each stacked group at each value ValueIndex point, ie. 20 stacked bars for 10 data points, 2 at each index point}

private void button2_Click(object sender, System.EventArgs e) 
{
((Steema.TeeChart.Styles.Bar)tChart1[0]).StackGroup = 0;
((Steema.TeeChart.Styles.Bar)tChart1[1]).StackGroup = 0;
((Steema.TeeChart.Styles.Bar)tChart1[2]).StackGroup = 1;
((Steema.TeeChart.Styles.Bar)tChart1[3]).StackGroup = 1;
((Steema.TeeChart.Styles.Bar)tChart1[4]).StackGroup = 1;    
}



See Also

CustomBar Class | CustomBar Members | Steema.TeeChart.Styles Namespace