Stacked Column, Bar and Radar-Column series
in the ASP.NET AJAX Chart can be clustered in groups
since the Q3 2013 release.
Series that will be stacked in a separate group
must have the same group name set in their GroupName property.
If the property is left blank, all series will be placed in one default stack. Setting
the GroupName property of any series automatically sets the
Stacked property of the first series to true, so it is not required
to be explicitly set.
<
telerik:RadHtmlChart
runat
=
"server"
ID
=
"RadBarChart"
Width
=
"300px"
Height
=
"250px"
>
<
PlotArea
>
<
Series
>
<
telerik:BarSeries
DataFieldY
=
"Value1"
GroupName
=
"Group1"
>
</
telerik:BarSeries
>
<
telerik:BarSeries
DataFieldY
=
"Value2"
GroupName
=
"Group1"
>
</
telerik:BarSeries
>
</
Series
>
</
PlotArea
>
</
telerik:RadHtmlChart
>
You can further examine the stacking of Series in the Stacked Series example.
Optionally, you can also use the StackType property to change the stack type from the default (Normal) type to Stack100, which will lead you to a 100% stacked chart. More about the Stack100 type is explained in the Stacked 100% Series demo.