ChartDirector 6.0 (Perl Edition)

BaseChart.setDropShadow


Usage

setDropShadow([ color [, offsetX [, offsetY [, blurRadius ]]]])

Description

Adds a drop shadow to the chart.

The drop shadow effect is created using a single color representation of the non-transparent part of the chart, offsetted by an amount, and put under the chart. The drop shadow can be blurred to create a soft drop shadow effect.

Note that adding a drop shadow will increase the width and height of the chart image so as to accommodate the drop shadow.

Because the drop shadow is located exterior to the original chart, it uses an exterior background color different from the background color of the original chart. The exterior background color is by default white, and can be configured with BaseChart.setRoundedFrame.

Arguments

ArgumentDefaultDescription
colorAAAAAAThe color of the drop shadow.
offsetX5The x offset of the drop shadow.
offsetY7fffffffThe y offset of the drop shadow. 7fffffff means it is the same as the x offset.
blurRadius5The blur radius of the drop shadow.

Return Value

None