Home > composition-plot > CategoryLegend
Concrete class that draws a legend for a discrete set of categories
Signature:
export declare class CategoryLegend extends BaseLegend
Extends: BaseLegend
Constructor | Modifiers | Description |
---|---|---|
(constructor)(container) | The CategoryLegend constructor |
Property | Modifiers | Type | Description |
---|---|---|---|
labels | string[] |
Method | Modifiers | Description |
---|---|---|
draw() | Re-draw the graphical elements | |
setLabels(labels) | Set the category labels |