ChartDirector 7.0 (Java Edition)

FinanceChart.addThreshold


Usage

public void addThreshold(XYChart c, LineLayer layer, double topRange, int topColor, double bottomRange, int bottomColor)

Description

Adds an upper/lower threshold range to an existing indicator chart.

Arguments

ArgumentDefaultDescription
c(Mandatory)The indicator chart to add the threshold range to.
layer(Mandatory)The line layer that the threshold range applies to.
topRange(Mandatory)The upper threshold.
topColor(Mandatory)The color to fill the region of the line that is above the upper threshold.
bottomRange(Mandatory)The lower threshold.
bottomColor(Mandatory)The color to fill the region of the line that is below the lower threshold.

Return Value

None