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

Chart Label

The following properties can be configured for Chart Label components:

Property Type Description
Name string The name of the label in the Component Hierarchy palette.
Width int The optional, manually set width of the label in pixels.
Height int The optional, manually set height of the label in pixels.
Text/HTML string The text to render in the label.
Rotation int The angle for rendering the label, one of NONE, CLOCKWISE, and COUNTERCLOCKWISE. The default value is NONE. If CLOCKWISE or COUNTERCLOCKWISE is specified, the label text should display on a single line.
Font Name string The name of the font for rendering the label.
Font Size string The point size of the font for rendering the label.
Font Weight string The weight of the font for rendering the label, either bold or normal. The default value is Normal.
Color string The color of the font for rendering the label. Specify as a predefined color name, RGB, or hexadecimal value. For example, red, rgb(255,0,0), or #ff0000.
CSS Class string The CSS class to use to render the label text.
BG Color string The fill color of the background rectangle. Specify as a predefined color name, RGB, or hexadecimal value. For example, red, rgb(255,0,0), or #ff0000.
Border Stroke VectorStroke The vector stroke for the outline of the background rectangle. 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.
BG Alpha float The alpha value (opacity) of the background rectangle. Specify a value from 0.0 (fully transparent) to 1.0 (fully opaque). The default value is 1.0.
Text Align string The alignment of label text in the background rectangle, one of center, left, or right.
Padding string The CSS padding string specifying the space between the label background and the label text 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.
Display string Whether the label displays in the chart. The default value is Block, which specifies to display the label. If None is selected, the label is not displayed in the chart but remains in the Component Hierarchy palette.
Bound Menu string A menu to display when a user right-clicks on the label 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.