ChartDirector 6.0 (Ruby Edition)

PlotArea.setBackground2


Usage

setBackground2(img [, align ])

Description

Sets the specified image file as the background image of the plot area.

ChartDirector will automatically detect the image file format using the file extension, which must either png, jpg, jpeg, gif, wbmp or wmp (case insensitive).

Please refer to BaseChart.setSearchPath on the directory that ChartDirector will search for the file.

Arguments

ArgumentDefaultDescription
img(Mandatory)The image file that is used as the background image of the plot area.
alignCenterThe alignment of the background image relative to the plot area. See Alignment Specification for supported alignment types.

Return Value

None