Adds a high-low-open-close (HLOC) layer to the XYChart, and specify the data sets to use for drawing the layer.
In this method, all HLOC symbols will be drawn using the color specified in the
color argument. Use
XYChart.addHLOCLayer3 for multi-color HLOC layers.
Internally, ChartDirector maps the colors of different parts of the HLOC symbol to data set colors as shown in the following table. You may control the colors of the HLOC symbol in more details by setting the data set colors directly. The data set objects can be obtained using
Layer.getDataSet, and the colors can be changed using
DataSet.setDataColor.
HLOC Symbol Color | Data Set Color |
---|
Central Line | Data Color for the first data set (index = 0) |
Open Mark Line | Data Color for the third data set (index = 2) |
Close Mark Line | Data Color for the fourth data set (index = 3) |
A
HLOCLayer object representing the HLOC layer created.
© 2023 Advanced Software Engineering Limited. All rights reserved.