The flare.vis.legend package provides classes for presenting legends for data visualizations.

 Legend A legend describing the visual encoding of a data property.
 LegendItem An item in a discrete legend consisting of a label and an icon indicating color, shape, and/or size.
 LegendRange A range in a continuous legend, consisting of a continuous visual scale and value labels.