The properties of a chart legend are:
| Property | Description | Editable | Formula Controllable | Data Type |
|---|---|---|---|---|
| General | ||||
| Class Type | Displays the class type of the object. | N | N | - |
| Data Inherit | Indicates whether the data of this object is inherited from another object or not. | N | N | _ |
| Dataset | Displays the name of the dataset used by the object. | N | N | _ |
| Geometry | ||||
| X | The distance between the legend and the left edge of the chart platform that contains it. | Y | N | Float |
| Y | The distance between the legend and the top edge of the chart platform that contains it. | Y | N | Float |
| Width | The width of the legend. | Y | N | Float |
| Height | The height of the legend. | Y | N | Float |
| CSS | ||||
| Style | Applies a style to the object. | Y | N | String |
| Class | This property assigns a class name to an object. Any number of objects may be assigned the same class name. On the other hand, assigns one or more class names to an object; the object may be said to belong to these classes. A class name may be shared by several objects. This property only has one role in JReport: as a style sheet selector (when an author wishes to assign style information to a set of objects). | Y | Y | String |
| External CSS Class Selector | Specifies the name of the class selector which will describe the style for the object when exporting the report result in HTML format. | Y | Y | String |
| Legend | ||||
| Auto Size | Specifies whether or not to automatically resize the legend. | Y | Y | Boolean |
| Placement | Specifies the position of the legend in the platform. | Y | N | Integer |
| Secondary Placement | Further specifies the position of the legend on the basis of the Placement property. | Y | N | Integer |
| Label Format Source | Sets the data format option for the chart legend label. Axis Data Format means that the legend label format will be the same as the series axis data format. If you select Legend Data Format, the format will be decided by the property Legend Data Format. | Y | N | Integer |
| Legend Data Format | Specifies the legend label format, applying if Label Format Source is set to Legend Data Format. | Y | Y | String |
| Label Vertical Spacing | The vertical distance between two adjacent legend labels. | Y | N | Float |
| Label Horizontal Spacing | The horizontal distance between two adjacent legend labels. | Y | N | Float |
| Top Margin | Specifies the distance between the legend labels and the top border of the legend. | Y | N | Float |
| Left Margin | Specifies the distance between the legend labels and the left border of the legend. | Y | N | Float |
| Right Margin | Specifies the distance between the legend labels and the right border of the legend. | Y | N | Float |
| Bottom Margin | Specifies the distance between the legend labels and the bottom border of the legend. | Y | N | Float |
| Background | ||||
| Border Type | Specifies the border style for the legend. | Y | N | Integer |
| Border Style | Specifies the line style of the legend border. | Y | N | Integer |
| Border Color | The color of the legend border. | Y | Y | String |
| Border Transparency | The border transparency, in percent. | Y | Y | Integer |
| Border Thickness | The thickness of the legend border. | Y | N | Float |
| Border End Caps | Specifies the ending style of the border. | Y | N | Integer |
| Border Joint | Specifies the line joint style for the legend border. | Y | N | Integer |
| Border Outlined | Specifies whether or not to show the border in outline form. | Y | Y | Boolean |
| Border Variable Dash | Specifies whether or not to automatically resize the dash. | Y | Y | Boolean |
| Fill Type | Specifies a fill pattern for the legend background. | Y | N | Integer |
| Fill Transparency | The legend background transparency, in percent. | Y | Y | Integer |
| Color | The legend background color. | Y | Y | String |
| Texture Style | The texture style of the legend background. | Y | N | Integer |
| Texture Foreground Color | The foreground color of the texture. | Y | Y | String |
| Texture Background Color | The background color of the texture. | Y | Y | String |
| Gradient Style | The gradient style. | Y | N | Integer |
| Gradient Start Color | The color for the beginning point of the gradient. | Y | Y | String |
| Gradient End Color | The color for the endpoint of the gradient. | Y | Y | String |
| Gradient Start X | The horizontal position of the gradient beginning point, measured in a percentage of the legend width. | Y | Y | Integer |
| Gradient Start Y | The vertical position of the gradient beginning point, measured in a percentage of the legend height. | Y | Y | Integer |
| Gradient End X | The horizontal position of the gradient endpoint, measured in a percentage of the legend width. | Y | Y | Integer |
| Gradient End Y | The vertical position of the gradient endpoint, measured in a percentage of the legend height. | Y | Y | Integer |
| Image File | The filename of the image to be displayed as the legend background. | Y | Y | String |
| Image Layout | Specifies a layout style for the image. | Y | N | Integer |
| Image X | The horizontal position of the image portion, measured in a percentage of the image width. | Y | Y | Integer |
| Image Y | The vertical position of the image portion, measured in a percentage of the image height. | Y | Y | Integer |
| Image Width | The width of the image portion, measured in a percentage of the image width. | Y | Y | Integer |
| Image Height | The height of the image portion, measured in a percentage of the image height. | Y | Y | Integer |
| Inset Top | The top position of the background area, measured in a percentage of the legend height, from the top edge of the legend. | Y | Y | Integer |
| Inset Left | The left position of the background area, measured in a percentage of the legend width, from the left edge of the legend. | Y | Y | Integer |
| Inset Right | The right position of the background area, measured in a percentage of the legend width, from the right edge of the legend. | Y | Y | Integer |
| Inset Bottom | The bottom position of the background area, measured in a percentage of the legend height, from the bottom edge of the legend. | Y | Y | Integer |
| Label | ||||
| Reverse Labels | Specifies whether or not to arrange the legend labels in a reverse order. | Y | Y | Boolean |
| Font Face | Specifies the font for the legend labels. | Y | Y | String |
| Font Size | Specifies the font size for the legend labels. | Y | N | Float |
| Font Style | Specifies a font style for the legend labels. | Y | N | Integer |
| Font Rotation | Specifies the rotation angle of each legend label around its center, in degrees. The default value is 0. | Y | Y | Integer |
| Font Shearing | Specifies the shearing transformation of each legend label around its center. The default value is 0. | Y | Y | Integer |
| Font Underline | Specifies the style of the line under the legend labels. | Y | N | Integer |
| Font Strikethrough | Specifies the style of the line with which the labels are struck through. | Y | N | Integer |
| Font Effect | Specifies a special effect for the label text. | Y | N | Integer |
| Font Script | Specifies whether the label text will be in superscript or subscript form. | Y | N | Integer |
| Word Wrap | Specifies whether or not to enable word wrapping for the label text. If the text contains special characters (such as ",", "." and space), it will be broken at the position of a proper special character. | Y | Y | Boolean |
| Outline Style | Specifies a style for the outline of the label text. | Y | N | Integer |
| Outline Color | The color of the label text outline. | Y | Y | String |
| Outline Transparency | The outline transparency, in percent. | Y | Y | Integer |
| Outline Thickness | The thickness of the label text outline. | Y | N | Float |
| Outline End Caps | Specifies an ending style for the label text outline. | Y | N | Integer |
| Outline Joint | Specifies a line joint style for the label text outline. | Y | N | Integer |
| Outline Outlined | Specifies whether or not to show the label text outline in outline form. | Y | Y | Boolean |
| Outline Variable Dash | Specifies whether or not to resize the dash automatically. | Y | Y | Boolean |
| Fill Type | Specifies a fill pattern for the labels. | Y | N | Integer |
| Fill Transparency | The fill transparency, in percent. | Y | Y | Integer |
| Color | The color for the labels. | Y | Y | String |
| Texture Style | Specifies the texture style for the labels. | Y | N | Integer |
| Texture Foreground Color | The foreground color for the texture. | Y | Y | String |
| Texture Background Color | The background color for the texture. | Y | Y | String |
| Gradient Style | Specifies a gradient style for the labels. The image fill type does not apply to the legend labels. | Y | N | Integer |
| Gradient Start Color | The color for the beginning point of the gradient. | Y | Y | String |
| Gradient End Color | The color for the endpoint of the gradient. | Y | Y | String |
| Gradient Start X | The horizontal position of the gradient beginning point, measured in a percentage of the label text's width. | Y | Y | Integer |
| Gradient Start Y | The vertical position of the gradient beginning point, measured in a percentage of the label text's height. | Y | Y | Integer |
| Gradient End X | The horizontal position of the gradient endpoint, measured in a percentage of the label text's width. | Y | Y | Integer |
| Gradient End Y | The vertical position of the gradient endpoint, measured in a percentage of the label text's height. | Y | Y | Integer |
| Icon | ||||
| Style List | Specifies the style for the icon of each legend label. | Y | N | String |
| Width | The width of legend icons. | Y | N | Float |
| Height | The height of legend icons. | Y | N | Float |
| Icon Alignment | The alignment style of the label icons. | Y | N | Integer |
| Border Style | Specifies a style for the icon borders. | Y | N | Integer |
| Border Color | The color of the icon borders. | Y | Y | String |
| Border Transparency | The border transparency, in percent. | Y | Y | Integer |
| Border Thickness | The thickness of the icon borders. | Y | N | Float |
| Border End Caps | Specifies an ending style for the icon borders. | Y | N | Integer |
| Border Joint | Specifies a line joint style for the icon borders. | Y | N | Integer |
| Border Outlined | Specifies whether or not to show the icon borders in outline form. | Y | Y | Boolean |
| Border Variable Dash | Specifies whether or not to resize the dash automatically. | Y | Y | Boolean |
| Icon Text Gap | Specifies the distance between each label and its icon. | Y | N | Float |