ChartDirector Ver 3.1 (PHP Edition Edition)

XYChart.setPlotArea


Usage

setPlotArea(x, y, width, height[, bgColor[, altBgColor[, edgeColor[, hGridColor[, vGridColor]]]]])

Description

Set the position, size, background colors, edge color and grid colors of the plot area.

Arguments

ArgumentDefaultDescription
x(Mandatory)The x coordinate of the left of the plot area.
y(Mandatory)The y coordinate of the top of the plot area.
width(Mandatory)The width of the plot area in pixels.
height(Mandatory)The height of the plot area in pixels.
bgColorTransparentThe background color of the plot area.
altBgColor-1The second background color of the plot area. -1 means there is no second background color. If there is a second background color, the two background colors will be used alternatively as horizontal bands on the background grid.
edgeColorLineColorThe border color of the plot area.
hGridColorC0C0C0The horizontal grid color..
vGridColorTransparentThe vertical grid color.

Return Value

A PlotArea object representing the plot area.