Version 24.2 (latest)

Trendline Layer

The below image demonstrates using the trendline layer with the XamFinancialChart. There are a variety of trendline types to choose from. You can Adjust this by using the trendline drop down currently displaying QuadraticFit.

financialchart wpf layers trendline.png
Property Name Type Description

FinancialChartVolumeType

Gets or Sets the type of the trendline.

BrushCollection

Gets or sets the palette of brushes to use for coloring the trendlines.

double

Gets or sets the thickness of the trendlines.

int

Gets or sets the period of the trendlines.

Note: these properties apply to all chart panes and the same trend line type will be applied to all chart panes.

The following demonstrates how to set the TrendLineType through code:

In XAML:

<ig:XamFinancialChart ItemsSource="{Binding}"
    TrendLineType="QuinticFit"
    TrendLineBrushes="Green"
    TrendLineThickness="2" />

In Visual Basic:

Dim chart as New XamFinancialChart()
chart.TrendLineType = Infragistics.Controls.Charts.TrendLineType.QuinticFit
chart.TrendLineBrushes = new Infragistics.BrushCollection();
Dim brush As SolidColorBrush = new SolidColorBrush()
brush.Color = Colors.Green
chart.TrendLineBrushes.Add(brush)
chart.TrendLineThickness = 2

In C#:

var chart = new XamFinancialChart();
chart.TrendLineType = Infragistics.Controls.Charts.TrendLineType.QuinticFit;
chart.TrendLineBrushes = new Infragistics.BrushCollection();
SolidColorBrush brush = new SolidColorBrush();
brush.Color = Colors.Green;
chart.TrendLineBrushes.Add(brush);
chart.TrendLineThickness = 2;
Topic Purpose

This article explains the Financial Overlays of the chart.