General Interface is an open source project hosted by the Dojo Foundation

Legend

The following properties can be configured for Legend components:

Property Description
Name The name of the legend in the Component Hierarchy palette.
Width The horizontal space to dedicate to the legend and its margin. This value is used only if the Legend Placement property for the chart has a value of right or left.
Height The vertical space to dedicate to the legend and its margin. This value is used only if the Legend Placement property for the chart has a value of top or bottom.
Box Height The diameter of the colored boxes to render for each legend entry in pixels.
Line Height The vertical space to use for each legend entry in pixels.
Label CSS Class The CSS class to apply to each legend entry.
Label CSS Styles The CSS style attribute to apply to each legend entry.
Padding The CSS padding string specifying the space between the legend background and the legend content in pixels. Specify a single value to use on all sides, such as 5, or a set of values separated by spaces for top, right, bottom, and left, such as 5 0 5 0.
Margin The CSS margin string specifying the space between the legend background and its bounding area. Specify a single value to use on all sides, such as 5, or a set of values separated by spaces for top, right, bottom, and left, such as 5 0 5 0.
Background Fill The vector fill for the background of the legend. The syntax is color [alpha], where color is specified as a predefined color name, RGB, or hexadecimal value. For example, red, rgb(255,0,0), or #ff0000. alpha is an optional float value between 0.0 and 1.0.
Background Stroke The vector stroke for the background of the legend. The syntax is color [width [alpha]], where color is specified as a predefined color name, RGB, or hexadecimal value. For example, red, rgb(255,0,0), or #ff0000. width is an optional integer value specifying the width of the line in pixels. alpha is an optional float value between 0.0 and 1.0.
Display Whether the legend displays in the chart. The default value is Block, which specifies to display the legend. If None is selected, the legend is not displayed in the chart but remains in the Component Hierarchy palette.
Bound Menu A menu to display when a user right-clicks on the legend with the mouse. Specify the name of the menu component as displayed in the Component Hierarchy palette.

Contents

Searching General Interface Docs

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.