Chart Legend Properties
This topic describes the properties of the Chart Legend object.
Property | Description |
---|---|
General | |
Display Name | Specify the display name of the object.
Data type: String |
Instance Name | Server displays the instance name of the object. This property is read only. |
Geometry | |
Height | Specify the height of the object, in inches. Type a numeric value to change the height.
Data type: Float |
Width | Specify the width of the object, in inches. Type a numeric value to change the width.
Data type: Float |
X | Specify the horizontal coordinate of the upper-left corner of the object, relative to its parent container. Type a numeric value to change the position in inches.
This property takes effect only when you set the Placement property to customized. Data type: Float |
Y | Specify the vertical coordinate of the upper-left corner of the object, relative to its parent container. Type a numeric value to change the position in inches.
This property takes effect only when you set the Placement property to customized. Data type: Float |
Legend | |
Auto Size | Specify whether to resize the legend automatically.
Data type: Boolean |
Bottom Margin | Specify the distance between the legend labels and the bottom border of the legend, in inches. Type a numeric value to change the margin.
Data type: Float |
Label Format Source | Specify the data format option for the chart legend labels.
This property is not available to heat maps that are colored only by summaries. Data type: Enumeration |
Label Horizontal Spacing | Specify the horizontal distance between two adjacent legend labels. Type a numeric value to change the distance.
This property is not available to heat maps that are colored only by summaries. Data type: Float |
Label Vertical Spacing | Specify the vertical distance between two adjacent legend labels. Type a numeric value to change the distance.
This property is not available to heat maps that are colored only by summaries. Data type: Float |
Left Margin | Specify the distance between the legend labels and the left border of the legend, in inches. Type a numeric value to change the margin.
Data type: Float |
Legend Data Format | Specify the data format of the legend labels. Select the ellipsis button in the value cell to specify the format in the Data Format dialog box. This property applies when you set Label Format Source to Legend Data Format. Data type: String |
Placement | Specify the position of the legend to be on the left, right, top, bottom of the chart or customized by manually dragging in the chart. Choose an option from the drop-down list.
Data type: Enumeration |
Right Margin | Specify the distance between the legend labels and the right border of the legend, in inches. Type a numeric value to change the margin.
Data type: Float |
Secondary Placement | Specify the position of the legend further based on the setting of the Placement property. Choose an option from the drop-down list.
Data type: Enumeration |
Show Scrollbar | Specify whether to display a scroll bar on the legend to fully view the legend contents when the contents do not fit into the legend.
Data type: Boolean |
Show Tips | Specify whether to show the corresponding data information when you hover over a legend entry in the chart. The tip is also available in the HTML output.
Data type: Boolean |
Top Margin | Specify the distance between the legend labels and the top border of the legend, in inches. Type a numeric value to change the margin.
Data type: Float |
Truncate | Specify whether to truncate the legend entry label text when the text overflow the labels.
Data type: Boolean |
Background | |
Border Color | Specify the color of the legend border. Select a color from the drop-down list or select Custom to define a color in the Color Picker dialog box. You can also type a hexadecimal RGB value (for example, 0xff0000) to specify a color.
Data type: String Data type: String |
Border End Caps | Select the ending style of the legend border line. Data type: Enumeration |
Border Style | Select the line style of the legend border. Data type: Enumeration |
Border Thickness | Specify the width of the legend border, in inches. Type a numeric value to change the thickness.
Data type: Float |
Border Transparency | Specify the color transparency of the legend border, in percent. Type a numeric value to change the transparency.
Data type: Integer |
Border Type | Select the border type of the legend.
Data type: Enumeration |
Border Variable Dash | Select true to adjust the dash size automatically or false to use the fixed dash size. Data type: Boolean |
Color | Specify the color of the legend background. Select a color from the drop-down list or select Custom to define a color in the Color Picker dialog box. You can also type a hexadecimal RGB value (for example, 0xff0000) to specify a color.
Data type: String This property applies when you set Fill Type of the legend background to Color. Data type: String |
Fill Transparency | Specify the transparency of the legend background color, in percent. Type a numeric value to change the transparency.
Data type: Integer |
Fill Type | Specify the fill pattern for the legend background.
Data type: Enumeration |
Inset Bottom | Specify the bottom position of the background area, measured in a percentage of the legend height, from the bottom edge of the legend.
Data type: Float |
Inset Left | Specify the left position of the background area, measured in a percentage of the legend width, from the left edge of the legend.
Data type: Float |
Inset Right | Specify the right position of the background area, measured in a percentage of the legend width, from the right edge of the legend.
Data type: Float |
Inset Top | Specify the top position of the background area, measured in a percentage of the legend height, from the top edge of the legend.
Data type: Float |
Label | |
Auto Scale in Number |
Select true if you want to automatically scale the values that are of the Number data type when the values fall into the two ranges:
The default value auto means that the setting follows that of the chart. Data type: Boolean |
Color | Specify the color of the label text. Select a color from the drop-down list or select Custom to define a color in the Color Picker dialog box. You can also type a hexadecimal RGB value (for example, 0xff0000) to specify a color.
Data type: String This property applies when you set Fill Type of the label text to Color. Data type: String |
Fill Transparency | Specify the color transparency of the label text, in percent. Type a numeric value to change the transparency.
Data type: Integer |
Fill Type | Specify the fill pattern for the label text.
Data type: Enumeration |
Font Face | Select the font face for the label text. Data type: Enumeration |
Font Rotation | Specify the rotation angle of each legend label around its center, in degrees. The default value is 0. Type a numeric value to change the rotation.
Data type: Float |
Font Size | Specify the font size for the label text. Type an integer value to change the size.
Data type: Integer |
Font Style | Select the font style for the label text. Data type: Enumeration |
Outline Color | Specify the color for the label text outline. Select a color from the drop-down list or select Custom to define a color in the Color Picker dialog box. You can also type a hexadecimal RGB value (for example, 0xff0000) to specify a color.
Data type: String Data type: String |
Outline End Caps | Select the ending style for the label text outline. Data type: Enumeration |
Outline Joint | Select the joint style for the label text outline. Data type: Enumeration |
Percent Format | Specify the format of the percentage values on the legend. Select the ellipsis button in the value cell to specify the format in the Data Format dialog box.
This property applies when you set Show Percent to true. Data type: String |
Reverse Labels | Specify whether to reverse the order of the labels in the legend object.
Data type: Boolean |
Show All Labels | Specify whether to display zero values besides other values in the legend. Data type: Boolean |
Show Percent | Specify whether to show the percentage of each entry value to the total on the legend. This property applies to pie, bar, and bench charts that have only one value axis.
Data type: Boolean |
Show Values | Specify whether to show the values for the legend entries. This property applies to pie, bar, and bench charts that have only one value axis.
Data type: Boolean |
Text of Total Value | Specify the text of the total value label on the legend. This property applies to pie, bar, and bench charts that have only one value axis.
Data type: String |
Value Format | Specify the number format of the legend entry values. Select the ellipsis button in the value cell to specify the format in the Data Format dialog box.
This property applies when you set Show Values to true. Data type: String |
Icon | |
Border Color | Specify the color of the icon border. Select a color from the drop-down list or select Custom to define a color in the Color Picker dialog box. You can also type a hexadecimal RGB value (for example, 0xff0000) to specify a color.
Data type: String Data type: String |
Border End Caps | Select the ending style of the icon border line. Data type: Enumeration |
Border Joint | Select the joint style of the icon border line. Data type: Enumeration |
Border Style | Select the line style of the icon border. Data type: Enumeration |
Border Thickness | Specify the width of the icon border in inches. Type a numeric value to change the thickness.
Data type: Float |
Border Transparency | Specify the color transparency of the icon border, in percent. Type a numeric value to change the transparency.
Data type: Integer |
Border Variable Dash | Select true to adjust the dash size automatically or false to use the fixed dash size. Data type: Boolean |
Height | Specify the height of the icon, in inches. Type a numeric value to change the width.
Data type: Float |
Icon Alignment | Select the relative position of the icon to the legend. Data type: Enumeration |
Icon Text Gap | Specify the distance between each legend label and icon. Type a numeric value to change the gap.
Data type: Float |