Class AreaSeries
AreaSeries connects its data points,using a continuous line with its underlying areas being filled in.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class AreaSeries : XyDataSeries, ICloneable, ISupportAxes2D, ISupportAxes, ISegmentSelectable
Examples
<syncfusion:AreaSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value">
</syncfusion:AreaSeries>
AreaSeries series1 = new AreaSeries();
series1.ItemsSource = viewmodel.Data;
series1.XBindingPath = "Year";
series1.YBindingPath = "Value";
chart.Series.Add(series1);
Constructors
AreaSeries()
Declaration
public AreaSeries()
Fields
IsClosedProperty
The DependencyProperty for IsClosed property.
Declaration
public static readonly DependencyProperty IsClosedProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
SegmentSelectionBrushProperty
The DependencyProperty for SegmentSelectionBrush property.
Declaration
public static readonly DependencyProperty SegmentSelectionBrushProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
SelectedIndexProperty
The DependencyProperty for SelectedIndex property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
IsAreaTypeSeries
Gets the value which confirms whether it is area typed series.
Declaration
protected override bool IsAreaTypeSeries { get; }
Property Value
Type |
---|
System.Boolean |
Overrides
Remarks
Returns true
if its linear, otherwise it returns false
.
IsClosed
Gets or sets a value that indicates whether area path should be closed or opened. This is a bindable property.
Declaration
public bool IsClosed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | If its |
IsLinear
Gets the value which confirms whether this series in linearity.
Declaration
protected override bool IsLinear { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Returns |
Overrides
SegmentSelectionBrush
Gets or sets the interior (brush) for the selected segment(s).
Declaration
public Brush SegmentSelectionBrush { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The Windows.UI.Xaml.Media.Brush value. |
SelectedIndex
Gets or sets the index of the selected segment.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
|
SelectedSegments
Gets the selected segments in this series, when we enable the multiple selection.
Declaration
protected override List<ChartSegment> SelectedSegments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ChartSegment> | It returns list of ChartSegment. |
Overrides
Methods
CloneSeries(DependencyObject)
Returns the instance of AreaSeries series.
Declaration
protected override DependencyObject CloneSeries(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | object |
Returns
Type |
---|
Windows.UI.Xaml.DependencyObject |
Overrides
CreateSegment()
Creates an instance of series segment.
Declaration
protected override ChartSegment CreateSegment()
Returns
Type | Description |
---|---|
ChartSegment | Returns the instance of corresponding series segment. |
Overrides
Remarks
This customization is not supported for fast type series and technical indicators.
Examples
This sample shows how to call the CreateSegment() method to customize the line series segments.
public class LineSeriesExt : LineSeries
{
protected override ChartSegment CreateSegment()
{
return new LineSegmentExt();
}
}
public class LineSegmentExt : LineSegment
{
public override UIElement CreateVisual(Size size)
{
// Write your customization code here.
}
public override void Update(IChartTransformer transformer)
{
// Write your customization code here.
}
}
CreateSegments()
Creates the segments of AreaSeries.
Declaration
public override void CreateSegments()
Overrides
OnTapped(TappedRoutedEventArgs)
Used to update the series tooltip when tapping on the series segments.
Declaration
protected override void OnTapped(TappedRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.TappedRoutedEventArgs | e | TappedRoutedEventArgs |
Overrides
SelectedIndexChanged(Int32, Int32)
Method used to set SegmentSelectionBrush to selectedindex chartsegment
Declaration
protected override void SelectedIndexChanged(int newIndex, int oldIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | newIndex | |
System.Int32 | oldIndex |