Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Chart Namespace / Area Class / Series Property
Example


In This Topic
    Series Property
    In This Topic
    Gets a list of Series instances contained in the Area.
    Syntax
    'Declaration
     
    
    Public ReadOnly Property Series As SeriesList(Of Series)
    'Usage
     
    
    Dim instance As Area
    Dim value As SeriesList(Of Series)
     
    value = instance.Series
    public SeriesList<Series> Series {get;}
    Example
    The following shows how to set up a Series within an Area.
    <xctk:Chart Height="400">
      <xctk:Chart.Areas>
        <xctk:Area x:Name="_area1" Title="Area #1">
          <xctk:Area.XAxis>
    
            <xctk:Axis x:Name="_xAxis"
                                    LabelsType="Numeric"
                                    GraduationMode="Automatic"
                                    TicksCount="10"
                                    ScaleMode="Automatic"
                                    CustomRangeStart="0"
                                    CustomRangeEnd="10"
                                    Title="X Axis"
                                    TitleMargin="10"
                                    AxisLabelsLayout="ShowAll"
                                    ShowArrow="False"
                                    ShowAxis="True"
                                    ShowGridLines="True"
                                    ShowTicks="True"
                                    ShowTickLabels="True"
                                    ShowAxisLabel="True"
                                    Reversed="False"/>
          </xctk:Area.XAxis>
          <xctk:Area.YAxis>
            <xctk:Axis x:Name="_yAxis"
                                    LabelsType="Numeric"
                                    GraduationMode="Automatic"
                                    TicksCount="10"
                                    ScaleMode="Automatic"
                                    CustomRangeStart="0"
                                    CustomRangeEnd="10"
                                    Title="Y Axis"
                                    TitleMargin="10"
                                    AxisLabelsLayout="ShowAll"
                                    ShowArrow="False"
                                    ShowAxis="True"
                                    ShowGridLines="True"
                                    ShowTicks="True"
                                    ShowTickLabels="True"
                                    ShowAxisLabel="True"
                                    Reversed="False"/>
          </xctk:Area.YAxis>
    
          <xctk:Area.Series>
            <xctk:Series x:Name="_series"
                          DefaultInterior="BlueViolet"
                          Spacing="20"
                          Title="Average"
                          ShowPointsInLegend="false"
                          ShowHintLabels="false"
                          HintLineLength="20">
              <xctk:Series.Layout>
                <xctk:LineLayout />
              </xctk:Series.Layout>
              <xctk:Series.DataPoints>
                <xctk:DataPoint X="1" Y="1" Label="Oct" />
                <xctk:DataPoint X="2" Y="2" Label="Jan"/>
                <xctk:DataPoint X="2.5" Y="1.5" Label="Feb" />
                <xctk:DataPoint X="4" Y="1" Label="Jun"/>
                <xctk:DataPoint X="1.5" Y="3" Label="Dec"/>
                <xctk:DataPoint X="5" Y="5" Label="Apr"/>
                <xctk:DataPoint X="3" Y="1" Label="Nov"/>
                <xctk:DataPoint X="4.5" Y="7" Label="Jul"/>
                <xctk:DataPoint X="3.5" Y="4.5" Label="Aug"/>
              </xctk:Series.DataPoints>
            </xctk:Series>
          </xctk:Area.Series>
        </xctk:Area>
      </xctk:Chart.Areas>
    </xctk:Chart>
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also