du.widgets.label

A label is a static piece of text.

Requires: d3@v4 du.Widget

Label

du.widgets.label.Label(name[, parent])

The label widget class.
argtypedescription
namestringIdentifier of the label.
parentobjectParent element to append widget to. If not specified, widget is appended to body. optional

align

du.widgets.label.Label.align(alignment)

Sets label text alignment. Default is center.
argtypedescription
alignmentstringThe alignment to set.
returndescription
du.widgets.label.LabelReference to the current Label.