Class FastLineSeries
The FastLineSeries is a special kind of line series that can render a collection with a large number of data points.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.Chart.WinUI.dll
Syntax
public class FastLineSeries : XyDataSeries, INotifyPropertyChanged
Remarks
To render a series, create an instance of FastLineSeries class, and add it to the Series collection.
It provides options for Fill, PaletteBrushes, StrokeWidth, and opacity to customize the appearance.
EnableTooltip - A tooltip displays information while tapping or mouse hovering over a segment. To display the tooltip on chart, need to set the EnableTooltip property as true in FastLineSeries class, and also refer TooltipBehavior property.
Data Label - Data labels are used to display values related to a chart segment. To render the data labels, you need to set the
Animation - To animate the series, set True to the EnableAnimation property.
LegendIcon - To customize the legend icon using the LegendIcon property.
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:NumericalAxis/>
</chart:SfCartesianChart.XAxes>
<chart:SfCartesianChart.YAxes>
<chart:NumericalAxis/>
</chart:SfCartesianChart.YAxes>
<chart:FastLineSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"/>
</chart:SfCartesianChart>
Constructors
FastLineSeries()
Declaration
public FastLineSeries()
Fields
CustomTemplateProperty
Identifies the CustomTemplate dependency property.
Declaration
public static readonly DependencyProperty CustomTemplateProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for CustomTemplate dependency property. |
Properties
CustomTemplate
Gets or sets the DataTemplate that can be used to customize the appearance of polyline.
Declaration
public DataTemplate CustomTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DataTemplate | The template that defines the polyline. |
Remarks
Properties such as StrokeDashArray, StrokeThickness, and Stroke can be used to customize poly lines.
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:FastLineSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue">
<chart:FastLineSeries.CustomTemplate>
<DataTemplate>
<Polyline Points = "{Binding Points}" StrokeDashArray="5,3" StrokeThickness="2" Stroke="Red"/>
</DataTemplate>
</chart:FastLineSeries.CustomTemplate>
</chart:FastLineSeries>
</chart:SfCartesianChart>
Methods
OnTapped(TappedRoutedEventArgs)
Declaration
protected override void OnTapped(TappedRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Input.TappedRoutedEventArgs | e |