Class CartesianSeries
Serves as a base class for all the Cartesian chart types used to visualize data points in Cartersian coordinate system.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public abstract class CartesianSeries : AdornmentSeries, ICloneable, ISupportAxes2D, ISupportAxes
Examples
<syncfusion:BarSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value">
</syncfusion:BarSeries>
BarSeries series1 = new BarSeries();
series1.ItemsSource = viewmodel.Data;
series1.XBindingPath = "Year";
series1.YBindingPath = "Value";
chart.Series.Add(series1);
Constructors
CartesianSeries()
Called when instance created for CartesianSeries
Declaration
public CartesianSeries()
Fields
IsTransposedProperty
The DependencyProperty for IsTransposed property.
Declaration
public static readonly DependencyProperty IsTransposedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowTrackballInfoProperty
The DependencyProperty for ShowTrackballInfo property.
Declaration
public static readonly DependencyProperty ShowTrackballInfoProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TrendlinesProperty
The DependencyProperty for Trendlines property.
Declaration
public static readonly DependencyProperty TrendlinesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
XAxisProperty
The DependencyProperty for XAxis property.
Declaration
public static readonly DependencyProperty XAxisProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
YAxisProperty
The DependencyProperty for YAxis property.
Declaration
public static readonly DependencyProperty YAxisProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
IsTransposed
Gets or sets a value indicating whether to exchange the orientation of the series.
Declaration
public bool IsTransposed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowTrackballInfo
Gets or sets a value indicating whether to show/hide the series information.
Declaration
public bool ShowTrackballInfo { get; set; }
Property Value
Type |
---|
System.Boolean |
Trendlines
Gets or sets the trendline collection for this series.
Declaration
public ChartTrendLineCollection Trendlines { get; set; }
Property Value
Remarks
Trends consider only non empty sets of corresponding CartesianSeries.
XAxis
Gets or sets the additional x axis for this series.
Declaration
public ChartAxisBase2D XAxis { get; set; }
Property Value
Type |
---|
ChartAxisBase2D |
Remarks
This property is used to add multiple axis in SfChart.
Examples
<syncfusion:ColumnSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" YBindingPath="Year2010">
<syncfusion:ColumnSeries.XAxis>
<syncfusion:NumericalAxis Header="Additional X Axis"/>
</syncfusion:ColumnSeries.XAxis>
</syncfusion:ColumnSeries>
XRange
Gets or sets the x axis range corresponding to this series.
Declaration
public DoubleRange XRange { get; }
Property Value
Type |
---|
DoubleRange |
YAxis
Gets or sets the additional y axis for this series.
Declaration
public RangeAxisBase YAxis { get; set; }
Property Value
Type |
---|
RangeAxisBase |
Remarks
This property is used to add multiple axis in SfChart.
Examples
<syncfusion:ColumnSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" YBindingPath="Year2010">
<syncfusion:ColumnSeries.YAxis>
<syncfusion:NumericalAxis Header="Additional Y Axis"/>
</syncfusion:ColumnSeries.YAxis>
</syncfusion:ColumnSeries>
YRange
Gets or sets the y axis range corresponding to this series.
Declaration
public DoubleRange YRange { get; }
Property Value
Type |
---|
DoubleRange |
Methods
CloneSeries(DependencyObject)
Returns the instance of this series.
Declaration
protected override DependencyObject CloneSeries(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | object |
Returns
Type |
---|
System.Windows.DependencyObject |
Overrides
GetDataPoints(Double, Double, Double, Double)
Method to get the data points from the given range.
Declaration
public List<object> GetDataPoints(double startX, double endX, double startY, double endY)
Parameters
Type | Name | Description |
---|---|---|
System.Double | startX | start x |
System.Double | endX | end x |
System.Double | startY | start y |
System.Double | endY | end y |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> | The data points |
Remarks
This method will work only after render the series in visual.
GetDataPoints(Rect)
Method to get the visible range data points.
Declaration
public List<object> GetDataPoints(Rect rectangle)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rectangle | The Rectangle. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> | The data points. |
Remarks
This method will work only after render the series in visual.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
Declaration
public override void OnApplyTemplate()
Overrides
OnVisibleRangeChanged(VisibleRangeChangedEventArgs)
Called when VisibleRange property changed.
Declaration
protected virtual void OnVisibleRangeChanged(VisibleRangeChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
VisibleRangeChangedEventArgs | e |
OnXAxisChanged(ChartAxis, ChartAxis)
Called when XAxis created or changed.
Declaration
protected virtual void OnXAxisChanged(ChartAxis oldAxis, ChartAxis newAxis)
Parameters
OnYAxisChanged(ChartAxis, ChartAxis)
Called when YAxis created or changed.
Declaration
protected virtual void OnYAxisChanged(ChartAxis oldAxis, ChartAxis newAxis)
Parameters
Explicit Interface Implementations
ISupportAxes.ActualXAxis
Declaration
ChartAxis ISupportAxes.ActualXAxis { get; }
Returns
Type |
---|
ChartAxis |
ISupportAxes.ActualYAxis
Declaration
ChartAxis ISupportAxes.ActualYAxis { get; }
Returns
Type |
---|
ChartAxis |