This is a migrated thread and some comments may be shown as answers.

AreaSeries Combined mode

1 Answer 80 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Student
Top achievements
Rank 1
Student asked on 19 Feb 2013, 04:50 PM
Hi there,

I am trying dynamically add area series but I don't know how to set Combined property in a code behind. 
In XAML it look like
<telerik:AreaSeries CombineMode="Stack"></telerik:AreaSeries>

But in C# I am having difficulty to find properties "Stack, Stack100 ... " 

AreaSeries newSer1 = new AreaSeries();
newSer1.Focusable = true;
newSer1.ItemsSource = new List<int> { 1, 2, 3 };
newSer1.CombineMode = ???

Could you guys help me? Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Kirov
Telerik team
answered on 22 Feb 2013, 06:48 PM
Hi,

The CombineMode property of the ChartSeries is of type ChartSeriesCombineMode. You can use the property in code behind like this: 

//if you have using Telerik.Charting;
newSer1.CombineMode = ChartSeriesCombineMode.Stack;
 
//otherwise:
newSer1.CombineMode = Telerik.Charting.ChartSeriesCombineMode.Stack;

I hope this helps.

Regards,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Student
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or