Dundas Chart for ASP.NET
StackedGroupName Custom Attribute
See Also Send comments on this topic.
Custom Attributes > StackedGroupName Custom Attribute



Glossary Item Box

Gets or sets the stacked group name.

Visual Basic Copy Code
' Set the first two series to be in Group 1.
Chart1.Series(0)("StackedGroupName") = "Group1"
Chart1.Series(1)("StackedGroupName") = "Group1"

' Set the next two series to be in Group 2.
Chart1.Series(2)("StackedGroupName") = "Group2"
Chart1.Series(3)("StackedGroupName") = "Group2"


                    
C# Copy Code
using Dundas.Charting.WebControl;
  ...

// Set the first two series to be in Group 1.
Chart1.Series[0]["StackedGroupName"] = "Group1"
Chart1.Series[1]["StackedGroupName"] = "Group1"

// Set the next two series to be in Group 2.
Chart1.Series[2]["StackedGroupName"] = "Group2"
Chart1.Series[3]["StackedGroupName"] = "Group2"


                    

Remarks

When using the stacked bar or column chart, you can place any number of series in multiple stacked groups by setting the StackedGroupName custom attribute.

 

Custom Attribute Summary
Applies to Chart Element: Series Objects
Applies to Chart Types: StackedBar, StackedBar100, StackedColumn, and StackedColumn100.


 

StackedGroup1

Figure 1: Stacked Column Chart in Two Groups.

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.