Class RangeAreaSeries
RangeAreaSeries displays data points as a set of continuous lines with the areas between the high value and low value are filled in.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class RangeAreaSeries : RangeSeriesBase, ICloneable, ISupportAxes2D, ISupportAxes, ISegmentSelectable
Examples
<syncfusion:RangeAreaSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Low="Low">
</syncfusion:RangeAreaSeries>
RangeAreaSeries series1 = new RangeAreaSeries();
series1.ItemsSource = viewmodel.Data;
series1.XBindingPath = "Year";
series1.High = "High";
series1.Low = "Low";
chart.Series.Add(series1);
Constructors
RangeAreaSeries()
Declaration
public RangeAreaSeries()
Fields
HighValueInteriorProperty
The DependencyProperty for HighValueInterior property.
Declaration
public static readonly DependencyProperty HighValueInteriorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LowValueInteriorProperty
The DependencyProperty for LowValueInterior property.
Declaration
public static readonly DependencyProperty LowValueInteriorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentSelectionBrushProperty
The DependencyProperty for SegmentSelectionBrush property.
Declaration
public static readonly DependencyProperty SegmentSelectionBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedIndexProperty
The DependencyProperty for SelectedIndex property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
HighValueInterior
Gets or sets the interior brush that specifies the color for the high value segment. This is a bindable property.
Declaration
public Brush HighValueInterior { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
IsAreaTypeSeries
This property used to confirm 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
.
IsLinear
The property confirms the linearity of this series.
Declaration
protected override bool IsLinear { get; }
Property Value
Type |
---|
System.Boolean |
Overrides
Remarks
Returns true
if its linear, otherwise it returns false
.
LowValueInterior
Gets or sets the interior brush that specifies the color for the low value segment. This is a bindable property.
Declaration
public Brush LowValueInterior { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
SegmentSelectionBrush
Gets or sets the interior(brush) for the selected segment(s).
Declaration
public Brush SegmentSelectionBrush { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The System.Windows.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 the list of ChartSegment. |
Overrides
Methods
CloneSeries(DependencyObject)
Returns the instance of RangeAreaSeries series.
Declaration
protected override DependencyObject CloneSeries(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | object |
Returns
Type |
---|
System.Windows.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 RangeAreaSeries.
Declaration
public override void CreateSegments()
Overrides
GetCrossPoint(ChartPoint, ChartPoint, ChartPoint, ChartPoint)
Gets the cross point.
Declaration
protected Point? GetCrossPoint(ChartPoint p11, ChartPoint p12, ChartPoint p21, ChartPoint p22)
Parameters
Type | Name | Description |
---|---|---|
ChartPoint | p11 | The P11 value. |
ChartPoint | p12 | The P12 value. |
ChartPoint | p21 | The P21 value. |
ChartPoint | p22 | The P22 value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Windows.Point> | The CrossPoint |
OnMouseMove(MouseEventArgs)
Used to update the series tooltip when pointer moved on series.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | PointerRoutedEventArgs |
Overrides
SelectedIndexChanged(Int32, Int32)
Method used to set SegmentSelectionBrush to SelectedIndex segment.
Declaration
protected override void SelectedIndexChanged(int newIndex, int oldIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | newIndex | new index |
System.Int32 | oldIndex | old index |