ChartDirector 5.1 (PHP Edition)
VectorLayer.setIconSize
Usage
setIconSize(height [, width ])
Description
Sets the size of the icon to be used in legend box.
By default, if a legend box is available on the chart, ChartDirector will insert an legend entry if the VectorLayer is named. The size of the icon will be the size of the vectors used on the chart, using a short vector length to fit the legend box.
This method can be used to override the legend box settings to specify a custom width/height for the icons of the current VectorLayer.
Arguments
Argument | Default | Description |
height | (Mandatory) | The height of the icon in pixels. |
width | 0 | The width of the icon in pixels. 0 means the width is automatically determined. |
Return Value
None
© 2014 Advanced Software Engineering Limited. All rights reserved.