Use the legendArea tag to determine the characteristics and display properties of the legend area of a graph. The legend area identifies the series and reference lines in a graph.
This component must be a child of one of the following components:
The legendArea tag can have the following child tag: specialEffects.
The following example shows the XML for a legendArea tag.
<dvt:graph> <dvt:legendArea visible="true" alongGraphEdge="false" automaticPlacement="AP_ALWAYS" position="LAP_RIGHT" borderColor="#cccccc" fillColor="#ffffff" borderTransparent="false" fillTransparent="true"> </dvt:legendArea> </dvt:graph>
Name | Type | Supports EL? | Description |
---|---|---|---|
id | java.lang.String | no | Specifies the identifier for the component |
automaticPlacement | java.lang.String | no | Specifies whether the graph should automatically position the legend area on the graph. Valid values are:
|
borderColor | java.lang.String | no | Specifies the color of the border for the legend area. Enter values in RGB hexadecimal. The example borderColor="#000000" specifies black. |
borderTransparent | boolean | no | Indicates whether the border of the legend area is transparent. To make the legend area transparent, set both the borderTransparent and fillTransparent attributes to "true". Valid values are:
|
fillTransparent | boolean | no | Indicates whether the fill of the legend area is transparent. To make the legend area transparent, set both the borderTransparent and fillTransparent attributes to "true". Valid values are:
|
fillColor | java.lang.String | no | Specifies the color of the fill for the legend area. Enter values in RGB hexadecimal. The example color="#000000" specifies black color. This color property takes 6 or 8 digit hex as input. When 8 digit hex is used, the first 2 digits represent transparency, otherwise the color is opaque. |
position | java.lang.String | no | Specifies a constant that indicates the position of this legend area on the graph. Valid values are:
|
alongGraphEdge | boolean | no | Indicates whether the legend items are separate from each other, and they are along the entire edge of the graph, or whether the legend items are grouped together with little space between individual legend items. Valid values are:
|
rendered | boolean | no | Indicates whether the legend area of the graph is to be rendered. Valid values are "true" (Default) and "false". |