Label
live example
Explore the API in the live example.
api reference
Label()
Component implementing the label feature. A label is an arbitrary text content attached to the widget's elements. When this component is available, its API is exposed directly via the widget's own namespace.
Label.label(format)
Sets the label formatter.
Parameters
Name | Type | Description |
---|---|---|
format | Function that takes a single data point as parameter and returns a text representing the label to show. |
Returns
Widget
Reference to the Widget's API.