ChartDirector 5.1 (PHP Edition)

FinanceChart.addVolBars


Usage

addVolBars(height, upColor, downColor, flatColor)

Description

Adds a volume bar chart layer on the main chart.

Arguments

ArgumentDefaultDescription
height(Mandatory)The height of the bar chart layer in pixels.
upColor(Mandatory)The color to used on an 'up' day. An 'up' day is a day where the closing price is higher than that of the previous day.
downColor(Mandatory)The color to used on a 'down' day. A 'down' day is a day where the closing price is lower than that of the previous day.
flatColor(Mandatory)The color to used on a 'flat' day. A 'flat' day is a day where the closing price is the same as that of the previous day.

Return Value

A BarLayer object representing the bar layer created.