var colorScale = new Plottable.Scales.InterpolatedColor();
colorScale.range(["#BDCEF0", "#5279C7"]);
var legend = new Plottable.Components.InterpolatedColorLegend(colorScale);
colorScale.domain([0, 100]);
legend.xAlignment("center");
legend.yAlignment("center");
legend.renderTo("svg#example");
.formatter()
/.formatter(formatter)
Gets/sets the formatter for the legend labels.
.orientation()
/.orientation(orientation)
Gets/sets the orientation for the legend. Currently supported orientations are "horizontal", "left", and "right".