Dart Documentationorson_chartsLegendBuilder

LegendBuilder abstract class

The interface that must be implemented by an object that will build legends for a chart. A default implementation (StandardLegendBuilder) is provided, but you are free to substitute your own.


ColorScaleLegendBuilder, StandardLegendBuilder


abstract TableElement createLegend(Plot3D plot, Anchor2D anchor, Orientation orientation, ChartStyle style) #

Creates a legend for a plot, with the specified anchor and orientation. The style object provides style info (for example, the font and color for legend item text).