Class CartesianSeries
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.Chart.WinUI.dll
Syntax
public abstract class CartesianSeries : ChartSeries, INotifyPropertyChanged
Constructors
CartesianSeries()
Called when instance created for CartesianSeries.
Declaration
public CartesianSeries()
Fields
DataLabelSettingsProperty
The DependencyProperty for CartesianDataLabelSettings property.
Declaration
public static readonly DependencyProperty DataLabelSettingsProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
ShowTrackballLabelProperty
The DependencyProperty for ShowTrackballLabel property.
Declaration
public static readonly DependencyProperty ShowTrackballLabelProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
XAxisNameProperty
The DependencyProperty for XAxisName property.
Declaration
public static readonly DependencyProperty XAxisNameProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
YAxisNameProperty
The DependencyProperty for YAxisName property.
Declaration
public static readonly DependencyProperty YAxisNameProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Properties
DataLabelSettings
Gets or sets a value to customize the appearance of the displaying data labels in the cartesian series.
Declaration
public CartesianDataLabelSettings DataLabelSettings { get; set; }
Property Value
Type | Description |
---|---|
CartesianDataLabelSettings | It takes the CartesianDataLabelSettings. |
Remarks
This allows us to change the look of the displaying labels' content, shapes, and connector lines at the data point.
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:AreaSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue">
<chart:AreaSeries.DataLabelSettings>
<chart:CartesianDataLabelSettings />
</chart:AreaSeries.DataLabelSettings>
</chart:AreaSeries>
</chart:SfCartesianChart>
ShowTrackballLabel
Gets or sets a value indicating whether to show or hide the series information when the trackball is shown.
Declaration
public bool ShowTrackballLabel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | It takes bool values and its default value is true. |
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:SplineSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowTrackballLabel = "True"/>
</chart:SfCartesianChart>
XAxisName
Gets or sets the name of the (horizontal) axis in the XAxes collection which is used to plot the series with particular axis.
Declaration
public string XAxisName { get; set; }
Property Value
Type |
---|
System.String |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:CategoryAxis x:Name="XAxis1"/>
<chart:NumericalAxis x:Name="XAxis2"/>
</chart:SfCartesianChart.XAxes>
<chart:SfCartesianChart.YAxes>
<chart:NumericalAxis />
</chart:SfCartesianChart.YAxes>
<chart:SplineSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue" />
<chart:ColumnSeries ItemsSource = "{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
XAxisName="XAxis2" />
</chart:SfCartesianChart>
YAxisName
Gets or sets the name of the (vertical) axis in the YAxes collection which is used to plot the series with particular axis.
Declaration
public string YAxisName { get; set; }
Property Value
Type | Description |
---|---|
System.String | It takes the string value and its default value is null. |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:CategoryAxis />
</chart:SfCartesianChart.XAxes>
<chart:SfCartesianChart.YAxes>
<chart:NumericalAxis x:Name="YAxis1"/>
<chart:NumericalAxis x:Name="YAxis2"/>
</chart:SfCartesianChart.YAxes>
<chart:SplineSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue" />
<chart:ColumnSeries ItemsSource = "{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
YAxisName="YAxis2" />
</chart:SfCartesianChart>
Methods
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()