Class AreaSegment
Represents chart area segment.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class AreaSegment : ChartSegment, INotifyPropertyChanged
Remarks
Class instance is created automatically by WINRT Chart building system.
Constructors
AreaSegment()
Constructor
Declaration
public AreaSegment()
AreaSegment(List<Double>, IList<Double>)
Called when instance created for AreaSegments
Declaration
public AreaSegment(List<double> xValues, IList<double> yValues)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Double> | xValues | |
System.Collections.Generic.IList<System.Double> | yValues |
AreaSegment(List<Double>, List<Double>, AdornmentSeries, Object)
Called when instance created for AreaSegments
Declaration
public AreaSegment(List<double> xValues, List<double> yValues, AdornmentSeries series, object item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Double> | xValues | Used to specify the segment x-values |
System.Collections.Generic.List<System.Double> | yValues | Used to specify the segment y-values |
AdornmentSeries | series | Used to specify the corresponding series |
System.Object | item | Used to specify the corresponding item model |
Properties
XData
Gets or sets the data point value, bind with x for this segment.
Declaration
public double XData { get; set; }
Property Value
Type |
---|
System.Double |
YData
Gets or sets the data point value, bind with y for this segment.
Declaration
public double YData { get; set; }
Property Value
Type |
---|
System.Double |
Methods
CreateVisual(Size)
Used for creating UIElement for rendering this segment. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class.
Declaration
public override UIElement CreateVisual(Size size)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | size | Size of the panel |
Returns
Type | Description |
---|---|
Windows.UI.Xaml.UIElement | returns UIElement |
Overrides
GetRenderedVisual()
Gets the UIElement used for rendering this segment.
Declaration
public override UIElement GetRenderedVisual()
Returns
Type | Description |
---|---|
Windows.UI.Xaml.UIElement | returns UIElement |
Overrides
OnSizeChanged(Size)
Called whenever the segment's size changed. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.
Declaration
public override void OnSizeChanged(Size size)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | size |
Overrides
SetData(IList<Double>, IList<Double>)
Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.
Declaration
public override void SetData(IList<double> XValues, IList<double> YValues)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<System.Double> | XValues | |
System.Collections.Generic.IList<System.Double> | YValues |
Overrides
SetVisualBindings(Shape)
Method Implementation for set Binding to ChartSegments properties.
Declaration
protected override void SetVisualBindings(Shape element)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Shapes.Shape | element |
Overrides
Update(IChartTransformer)
Updates the segments based on its data point value. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class.
Declaration
public override void Update(IChartTransformer transformer)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.UI.Xaml.Charts.IChartTransformer | transformer | Represents the view port of chart control.(refer Syncfusion.UI.Xaml.Charts.IChartTransformer) |