ChartDirector 5.1 (PHP Edition)
XYChart.addCandleStickLayer
Usage
Description
Candlestick Symbol Color | Data Set Color |
---|---|
Fill color for "up" candlesticks | Data Color for the first data set (index = 0). |
Fill color for "down" candlesticks | Data Color for the second data set (index = 1). |
Border color | Edge Color for the first data set (index = 0). |
Center line color | Edge Color for the second data set (index = 1). |
Arguments
Argument | Default | Description |
---|---|---|
highData | (Mandatory) | An array of numbers representing the high values. |
lowData | (Mandatory) | An array of numbers representing the low values. |
openData | (Mandatory) | An array of numbers representing the opening values. |
closeData | (Mandatory) | An array of numbers representing the closing values. |
riseColor | FFFFFF | The color used to fill the candle if the closing value is higher than the opening value. |
fallColor | 000000 | The color used to fill the candle if the opening value is higher than the closing value. |
edgeColor | LineColor | The color used to draw the center line and the border of the candle. |
Return Value