ChartDirector 6.0 (ColdFusion Edition)

FinanceChart.addComparison


Usage

addComparison(data, color, name)

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.