Class FastRangeAreaBitmapSeries
FastRangeAreaBitmapSeries is another version of RangeAreaSeries which uses different technology for rendering line in order to boost performance.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class FastRangeAreaBitmapSeries : RangeSeriesBase, ICloneable, ISupportAxes2D, ISupportAxes, ISegmentSelectable
Remarks
It uses WriteableBitmap for rendering; Its advantage is that it will render the series with large quantity of data in a fraction of milliseconds.
Examples
<syncfusion:FastRangeAreaBitmapSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Low="Low">
</syncfusion:FastRangeAreaBitmapSeries>
FastRangeAreaBitmapSeries series1 = new FastRangeAreaBitmapSeries();
series1.ItemsSource = viewmodel.Data;
series1.XBindingPath = "Year";
series1.Low = "Low";
series1.High="High";
chart.Series.Add(series1);
Constructors
FastRangeAreaBitmapSeries()
Declaration
public FastRangeAreaBitmapSeries()
Fields
EnableAntiAliasingProperty
The DependencyProperty for EnableAntiAliasing property.
Declaration
public static readonly DependencyProperty EnableAntiAliasingProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
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
EnableAntiAliasing
Gets or sets a value indicating whether to enable the anti aliasing for the bitmap series, to draw smooth edges.
Declaration
public bool EnableAntiAliasing { get; set; }
Property Value
Type |
---|
System.Boolean |
HighValueInterior
Gets or sets the interior brush for the high value segment.
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 area type series, otherwise it returns false
.
IsBitmapSeries
This indicates whether its a bitmap series or not.
Declaration
protected override bool IsBitmapSeries { get; }
Property Value
Type |
---|
System.Boolean |
Overrides
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 for the low value segment.
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. |
See Also
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 ChartSegment. |
Overrides
Methods
CloneSeries(DependencyObject)
Returns the instance of FastRangeAreaBitmapSeries 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 FastRangeAreaBitmapSeries.
Declaration
public override void CreateSegments()
Overrides
OnDataSourceChanged(IEnumerable, IEnumerable)
Called when ItemsSource property changed.
Declaration
protected override void OnDataSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | oldValue | The old value passed for the items source. |
System.Collections.IEnumerable | newValue | The new value passed for the items source. |
Overrides
OnMouseMove(MouseEventArgs)
Called when pointer or mouse move on chart area.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | Event args |
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 | The new index passed. |
System.Int32 | oldIndex | The old index passed. |