Class TrendlineBase
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public abstract class TrendlineBase : Control
Constructors
TrendlineBase()
Declaration
public TrendlineBase()
Fields
BackwardForecastProperty
The DependencyProperty for BackwardForecast property.
Declaration
public static readonly DependencyProperty BackwardForecastProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ForwardForecastProperty
The DependencyProperty for ForwardForecast property.
Declaration
public static readonly DependencyProperty ForwardForecastProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsTrendlineVisibleProperty
The DependencyProperty for IsTrendlineVisible property.
Declaration
public static readonly DependencyProperty IsTrendlineVisibleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LabelProperty
The DependencyProperty for Label property.
Declaration
public static readonly DependencyProperty LabelProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LegendIconProperty
The DependencyProperty for LegendIcon property.
Declaration
public static readonly DependencyProperty LegendIconProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LegendIconTemplateProperty
The DependencyProperty for LegendIconTemplate property.
Declaration
public static readonly DependencyProperty LegendIconTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PolynomialOrderProperty
The DependencyProperty for PolynomialOrder property.
Declaration
public static readonly DependencyProperty PolynomialOrderProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StrokeDashArrayProperty
The DependencyProperty for StrokeDashArray property.
Declaration
public static readonly DependencyProperty StrokeDashArrayProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StrokeProperty
The DependencyProperty for Stroke property.
Declaration
public static readonly DependencyProperty StrokeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StrokeThicknessProperty
The DependencyProperty for StrokeThickness property.
Declaration
public static readonly DependencyProperty StrokeThicknessProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TypeProperty
The DependencyProperty for Type property.
Declaration
public static readonly DependencyProperty TypeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
VisibilityOnLegendProperty
The DependencyProperty for VisibilityOnLegend property.
Declaration
public static readonly DependencyProperty VisibilityOnLegendProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
BackwardForecast
Gets or sets the range of trend to be estimated from the past.
Declaration
public double BackwardForecast { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The double value. |
ForwardForecast
Gets or sets the range of trend to be estimated from the future.
Declaration
public double ForwardForecast { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The double value. |
Intercept
Gets or sets the intercept.
Declaration
public double Intercept { get; }
Property Value
Type |
---|
System.Double |
IsTrendlineVisible
Gets or sets a value indicating whether the Trendline
is visible.
Declaration
public bool IsTrendlineVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | if its |
Label
Gets or sets the label that will be displayed in the associated legend item.
Declaration
public string Label { get; set; }
Property Value
Type |
---|
System.String |
LegendIcon
Gets or sets the type of icon to be displayed in legend item.
Declaration
public ChartLegendIcon LegendIcon { get; set; }
Property Value
Type | Description |
---|---|
ChartLegendIcon | The value can be Circle, Rectangle, etc. See ChartLegendIcon. |
Remarks
By default, the icon shape will represent the series type.
LegendIconTemplate
Gets or sets the custom template for the legend icons.
Declaration
public DataTemplate LegendIconTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate | System.Windows.DataTemplate. |
PolynomialOrder
Gets or sets the Polynomial Order for the polynomial trendline, it calculate the order based equation..
Declaration
public int PolynomialOrder { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | It accepts integer value ranging from 2 to 6. |
PolynomialSlopes
Gets or sets the polynomial slopes.
Declaration
public double[] PolynomialSlopes { get; }
Property Value
Type |
---|
System.Double[] |
Slope
Gets or sets the slope.
Declaration
public double Slope { get; }
Property Value
Type |
---|
System.Double |
Stroke
Gets or sets the brush to paint the stroke of the trendline.
Declaration
public Brush Stroke { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
StrokeDashArray
Gets or sets a collection of Double values that indicates the pattern of dashes and gaps that is used to outline shapes.
Declaration
public DoubleCollection StrokeDashArray { get; set; }
Property Value
Type |
---|
System.Windows.Media.DoubleCollection |
StrokeThickness
Gets or sets the thickness for the trendline.
Declaration
public double StrokeThickness { get; set; }
Property Value
Type |
---|
System.Double |
Type
Gets or sets the type of the trendline.
Declaration
public TrendlineType Type { get; set; }
Property Value
Type | Description |
---|---|
TrendlineType |
VisibilityOnLegend
Gets or sets a value that determines whether to create a legend item for this trendline.
Declaration
public Visibility VisibilityOnLegend { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | System.Windows.Visibility |
Remarks
By default, legend will be visible for this trendline.
Methods
Clone()
Clone the trendline
Declaration
public DependencyObject Clone()
Returns
Type |
---|
System.Windows.DependencyObject |
CloneTrendline(DependencyObject)
Declaration
protected virtual DependencyObject CloneTrendline(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj |
Returns
Type |
---|
System.Windows.DependencyObject |
GetBezierControlPoints(ChartPoint, ChartPoint, Double, Double, out ChartPoint, out ChartPoint)
Returns the controlPoints of the curve
Declaration
protected void GetBezierControlPoints(ChartPoint point1, ChartPoint point2, double ys1, double ys2, out ChartPoint controlPoint1, out ChartPoint controlPoint2)
Parameters
Type | Name | Description |
---|---|---|
ChartPoint | point1 | |
ChartPoint | point2 | |
System.Double | ys1 | |
System.Double | ys2 | |
ChartPoint | controlPoint1 | |
ChartPoint | controlPoint2 |
NaturalSpline(List<Double>, List<Double>, out Double[])
Coefficient Of Natural Spline Segment
Declaration
protected void NaturalSpline(List<double> xValues, List<double> yValues, out double[] ys2)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Double> | xValues | |
System.Collections.Generic.List<System.Double> | yValues | |
System.Double[] | ys2 |
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()