AreaSeries Combined mode

2 posts, 1 answers
  1. Student
    Student avatar
    3 posts
    Member since:
    Feb 2013

    Posted 19 Feb 2013 Link to this post

    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!
  2. Answer
    Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 22 Feb 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top