new ludo.chart.LabelList(config)
Displays a list of labels for chart data (color box + label).
The Label List fetches it's label from the data source textOf function, and the
color from the items __color attribute or from the data source colorOf function.
When chart data are nested like
{ "course": "Math", "children": [ { "age": "0-14", "value": 100 }, { "age": "15-19", "value" : "150" } ] }
Labels for "0-14" and "15-19" will be shown(i.e. the leaf nodes).
How labels are rendered(side by side or beneath each other) is set by the orientation attribute OR
the size of the area designated to the labels. You can set orientation to
"vertical" or "horizontal". If orientation is not set and width is greater
than height, the labels will be displayed vertically. If height is greater
than width, the labels will be rendered vertically.
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
Properties
|
- Source: