ChartDirector 7.0 (ASP/COM/VB 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

ArgumentDefaultDescription
height(Mandatory)The height of the icon in pixels.
width0The width of the icon in pixels. 0 means the width is automatically determined.

Return Value

None