Trend Lines
Send Feedback

Glossary Item Box

Topic Overview


This topic provides an introductory overview of displaying trend lines on the IGSparklineView™ control.

In this topic

This topic contains the following sections:

Trend Lines


Trend lines are lines drawn from the starting plotted value to the last plotted value indicating the trending direction and movement of the series so that the viewer can evaluate the tendencies in the rendered data and mentally extrapolate past, future, or unknown values.

The trend line feature enables you to choose among several formulas for generating a trending directional line. The formula to use is specified in the trendLineType property. The trend line renders in front of the series data, so it is always visible.

Trend line types

The following table displays the supported trend line types. Each trend line type is drawn based on the calculation formula of its type.

Trend Line Type




Simple Average is a set of numbers, each of which is the average of a corresponding subset of data points. Also known as Simple Moving Average.


Modified Average shows the moving average value over a set period. Used to emphasize the direction of the trend and smooth out the fluctuation.


Exponential Average is similar to simple average with weight factor added to it. This type of average is known to react faster to recent changes of the trend.


Cumulative Average is an ordered pair of representing the cumulative calculated average of all data up to the current point.


Weighted Average is any average that applies a multiplying factor, giving weight to data at different positions.


Uses polynomial mathematical functions to specify a cubic fit trend line on a series.


Uses exponential mathematical functions to specify an exponential fit trend line on a series.


The best-fitting straight trend line.


The best-fitting curved line. Used when the rate of change in the data increases or decreases quickly and then levels out. This type of trend line is most useful with a lot of data to better visualize the curved line.


Power Law trend line is a curved line using power function to draw a line. Sparkline will not produce any errors, it will plot the point, but from the power trend line prospective the result will not be accurate. Use Power trend line with data sets comparing measurements that increase at a specific rate.


Uses quadratic equation to form a trend line showing the overall effect of the high and low data points with the accuracy of a linear curve.


Uses quartic polynomial to specify a trend line on a series.


Uses quintic polynomial to specify a trend line on a series.

Related Content


The following topic provides additional information related to this topic.



This topic serves as a gateway to the features and functionality of the IGSparklineView control.