Skip to content

Horizontal Legends

Pre-release
Pre-release

Choose a tag to compare

@jtlan jtlan released this 25 Aug 18:54
· 7059 commits to master since this release

screen shot 2014-08-25 at 11 42 52 am

Good morning,

HorizontalLegend has been added. HorizontalLegend draws its entries in rows, creating new rows when it runs out of space:

screen shot 2014-08-25 at 11 43 37 am

To use:

var horizontalLegend = new Plottable.Component.HorizontalLegend(colorScale);

Then add it to a table as usual. Going forward, Legend and HorizontalLegend will likely be merged into the same class, with an option to choose the display mode.


Breaking Changes

The contract for Animators has been changed to

public animate(selection: any, attrToProjector: IAttributeToProjector): D3.Selection;

Previously, animators took a third argument, the calling Plot.