The Area object is used to display a rectangular area in an XYPlot. The Area object has no constructor. Area objects are automatically created whenever a XYPlot, Chart, PlotTitle, or Legend objects are created.
import visualization session.charts[name].area session.charts[name].gridArea session.charts[name].legend.area session.defaultChartOptions.gridArea session.defaultChartOptions.legend.area session.defaultPlot.area session.defaultPlot.title.area session.xyPlots[name].area session.xyPlots[name].charts[name].area session.xyPlots[name].charts[name].gridArea session.xyPlots[name].charts[name].legend.area session.xyPlots[name].title.area
This method modifies the Area object.
Required arguments
Optional arguments
An Area object from which attributes are to be copied.
An AreaStyle object.
A LineStyle object.
A SymbolicConstant specifying how the area is positioned. Possible values are AUTO_ALIGN and MANUAL. The default value is AUTO_ALIGN.
A SymbolicConstant specifying the relative position of the area in its parent when positionMethod=AUTO_ALIGN. Possible values are:
The default value is BOTTOM_LEFT.
BOTTOM_LEFT
BOTTOM_CENTER
BOTTOM_RIGHT
CENTER_LEFT
CENTER
CENTER_RIGHT
TOP_LEFT
TOP_CENTER
TOP_RIGHT
A SymbolicConstant specifying how the area size is defined. Possible values are AUTOMATIC and MANUAL. The default value is AUTOMATIC.
A pair of Floats specifying the X- and Y-offsets of the origin as a fraction of the available area. The originOffset argument is ignored unless positionMethod=MANUAL. The default value is (-1, 0). The valid range for each float is (0, 1).
A Float specifying the scale as a fraction of the width of the available area when the sizeMethod=MANUAL. The valid range is (0, 1). The default value is 1.0.
A Float specifying the scale as a fraction of the height of the available area when the sizeMethod=MANUAL. The valid range is (0, 1). The default value is 1.0.
A Boolean specifying whether the area is inset or occupies a reserved area. The default value is OFF.
A Float specifying the left padding of the area in mm. The default value is 1.0.
A Float specifying the right padding of the area in mm. The default value is 1.0.
A Float specifying the top padding of the area in mm. The default value is 1.0.
A Float specifying the bottom padding of the area in mm. The default value is 1.0.
Return value
Exceptions
RangeError.
The Area object can have the following members:
A Boolean specifying whether the area is inset or occupies a reserved area. The default value is OFF.
A SymbolicConstant specifying how the area is positioned. Possible values are AUTO_ALIGN and MANUAL. The default value is AUTO_ALIGN.
A SymbolicConstant specifying the relative position of the area in its parent when positionMethod=AUTO_ALIGN. Possible values are:
The default value is BOTTOM_LEFT.
BOTTOM_LEFT
BOTTOM_CENTER
BOTTOM_RIGHT
CENTER_LEFT
CENTER
CENTER_RIGHT
TOP_LEFT
TOP_CENTER
TOP_RIGHT
A SymbolicConstant specifying how the area size is defined. Possible values are AUTOMATIC and MANUAL. The default value is AUTOMATIC.
A Float specifying the width of the area in mm. The default value is 1.0.
A Float specifying the height of the area in mm. The default value is 1.0.
A Float specifying the scale as a fraction of the width of the available area when the sizeMethod=MANUAL. The valid range is (0, 1). The default value is 1.0.
A Float specifying the scale as a fraction of the height of the available area when the sizeMethod=MANUAL. The valid range is (0, 1). The default value is 1.0.
A Float specifying the left padding of the area in mm. The default value is 1.0.
A Float specifying the right padding of the area in mm. The default value is 1.0.
A Float specifying the top padding of the area in mm. The default value is 1.0.
A Float specifying the bottom padding of the area in mm. The default value is 1.0.
An AreaStyle object specifying whether and how to fill the area.
A LineStyle object specifying whether and how to draw the border of the area.
A pair of Floats specifying the X- and Y-offsets in millimeters from the lower-left corner of the XYPlot.
A pair of Floats specifying the X- and Y-offsets of the origin as a fraction of the available area. The originOffset argument is ignored unless positionMethod=MANUAL. The default value is (-1, 0). The valid range for each float is (0, 1).