ChartDirector 5.1 (PHP Edition)
Layer.setLegendOrder
Usage
Description
Constant | Value | Description |
---|---|---|
NormalLegend | 0 | The data set priority is 10 x (data_set_index + 1). Legend entries are ordered in the order with which the data sets are created. |
ReverseLegend | 1 | The data sets priority is the reverse of the normal data set priority. Legend entries are ordered in the reverse order with which the data sets are created. |
NoLegend | 2 | The data set names are not added to the legend box at all. |
Arguments
Argument | Default | Description |
---|---|---|
dataSetOrder | (Mandatory) | One of the predefined constants representing the legend entry ordering method for data sets within the layer. |
layerOrder | -1 | The base legend entry priority of the layer. -1 means the priority is 10000 x (layer_index + 1). |
Return Value