GraphLegendSpec class

The legend: a key for each named mark (its color and its name), or in a polar pane for each slice (its color, its label and its share).

Constructors

GraphLegendSpec({String show = 'none', String position = 'auto', bool values = true})
const
GraphLegendSpec.fromJson(Object? v)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
position → String
bottom, top (a line of keys, wrapped, in the middle) or right (a list). auto: under a plot; beside slices where the list fits there, else under them.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
show → String
none (a graph has no legend unless it asks). auto: drawn when there is more than one thing to tell apart and there is room: under a plot with two or more named marks; beside labeled slices in a graph wide enough that the ring keeps at least three quarters of its height (slices in a narrower graph have none). always: whenever there is a key to draw (slices in a narrower graph: under them).
final
values → bool
Each slice's share is written after its label.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited