composition-plot

Home > composition-plot > CategoryLegend

CategoryLegend class

Concrete class that draws a legend for a discrete set of categories

Signature:

export declare class CategoryLegend extends BaseLegend 

Extends: BaseLegend

Constructors

Constructor Modifiers Description
(constructor)(container)   The CategoryLegend constructor

Properties

Property Modifiers Type Description
labels   string[]  

Methods

Method Modifiers Description
draw()   Re-draw the graphical elements
setLabels(labels)   Set the category labels