ChartDirector 7.1 (.NET Edition)

FinanceChart.addComparison


Usage

[C#]public LineLayer addComparison(double[] data, int color, string name);
[VB]Public Function addComparison(data As Double(), color As Integer, name As String) As LineLayer

Description

Adds a data series to the main chart for comparison with the closing price.

The data series added will be scaled so that the first visible point in the data series will coincide the first visible point of the main closing price. This facilitate comparing the performance of the closing price with the data series. The data series typically is the closing price of another stock, or the value of a market index.

Arguments

ArgumentDefaultDescription
data(Mandatory)An array of numbers representing the data series.
color(Mandatory)The color of the line.
name(Mandatory)The name of the data series.

Return Value

A LineLayer object representing the comparison line created.