Chat Now

View this topic on docs.devexpress.com (Learn more) ## Regression LinesThis document describes how a linear regression analysis can be performed over your chart's visual data. XtraCharts introduces the This document consists of the following sections. ## Regression Lines Overview
A A Regression Line differs from a Trend Line in that is a straight line indicating whether a particular data set has increased or decreased over a period of time. Trend Lines are sometimes used in business analytics to show changes in data over time because they are simple. However, they suffer from a lack of scientific validity in cases where other potential changes can affect the data. Thus, regression lines are a more sophisticated analytical instrument. Regression Lines determine whether the data suggests some kind of simple function between its variables. (In general, there are one or more independent variables and a single dependent variable, the values of which depend on the values of the other variables). Linear regression analysis involves determining the underlying equation through a method called A Regression Line is represented by an instance of the RegressionLine class (which is a descendant of the Indicator class) and (along with other indicators) resides in the IndicatorCollection of a series returned by the XYDiagram2DSeriesViewBase.Indicators property. Since a RegressionLine object is inherited from the SingleLevelIndicator class, to draw a Regression Line, you must specify its SingleLevelIndicator.ValueLevel property. Note
Because a regression line is built upon a specified The view type of the series to which a Regression Line is assigned is returned by the Indicator.View property. A series can possess any number of Regression Lines and any number of them can be drawn across the same value level. ## Draw a Regression Line
To access a series' collection of indicators at design time, select the series and in the In the invoked After a Regression Line is created, you can define its SingleLevelIndicator.ValueLevel and other properties in the Note that all the chart's indicators are painted based on a palette defined via the ChartControl.IndicatorsPaletteName property. ## See Also |