GraphSelectionSpec class

The selection: the row (or the one bar or slice) under the pointer, or pinned by a tap. The graph draws it apart from the rest and says what it holds in a tooltip; a page reads it as state (selection).

Constructors

GraphSelectionSpec({String on = 'none', String by = 'row', double dim = 0.35, Color? band, double grow = 4, double dot = 4, bool tooltip = true, String title = '', Color? tooltipFill, Color? tooltipText, bool total = false})
const
GraphSelectionSpec.fromJson(Json j)
factory

Properties

band → Color?
A fill behind the selected row, the height of the pane; null for none.
final
by → String
row: everything the row has (a tooltip row per mark). mark: the one bar of a group or stack under the pointer.
final
dim → double
The opacity of what is not selected while something is (1: as it is).
final
dot → double
A dot of this radius on each line at the selected row (0: none).
final
grow → double
How much thicker a selected slice is drawn.
final
hashCode → int
The hash code for this object.
no setterinherited
hover → bool
no setter
on → String
none, hover (the pointer selects, and leaving clears), tap (a tap selects and stays; a tap on it again or on nothing clears) or both (hover, and a tap pins what is under it).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tap → bool
no setter
title → String
final
tooltip → bool
Whether a tooltip is drawn, its first line (title: a row field, empty for the x label) and its colors (null: the style's tooltip and its text).
final
tooltipFill → Color?
final
tooltipText → Color?
final
total → bool
A last tooltip row with the sum of the row's marks.
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