GraphXSpec class
The x scale: rows evenly spaced by position (an index scale, so closed sessions take no room), labeled from label, under a viewport.
Constructors
-
GraphXSpec({bool grid = true, String scale = 'index', String field = '', double? min, double? max, List<
GraphTick> tickValues = const [], String label = 't', String format = 'MMM d', double barSpacing = 8, double minBarSpacing = 0.5, double maxBarSpacing = 80, double rightOffset = 3, String follow = 'end', bool clamp = true, bool overscroll = false, double axisHeight = 24, bool labels = true, double historyThreshold = 10, bool moreHistory = true, String fit = 'none', int? slots, int? tickEvery, double? maxBarWidth, String ticks = 'step', double morph = 0, List<GraphBandSpec> bands = const [], double inset = 0}) -
const
- GraphXSpec.fromJson(Json j)
-
factory
Properties
- axisHeight → double
-
final
-
bands
→ List<
GraphBandSpec> -
final
- barSpacing → double
-
Pixels from one row to the next when the graph first shows.
final
- clamp → bool
-
The view keeps some rows in it however far it is dragged.
final
- field → String
-
final
- fit → String
-
none: the viewport is the user's.points: every position fits across the plot, the first on its left edge and the last on its right (a line with no room at its ends).bars: the same with half a bar's room at each end.final - follow → String
-
end: new rows scroll into view while the last row is in view.none: the view stays on the rows it shows.final - format → String
-
An intl date pattern for a time label.
final
- grid → bool
-
Whether a line is drawn up each pane at every x tick.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- historyThreshold → double
-
Rows from the first one at which the graph asks for older rows.
final
- inset → double
-
Pixels kept clear at each end of a fitted view (fit): the first and
the last row stand this far inside the plot, so a dot or a line's end
there is whole.
final
- label → String
-
The row field of the label (an ISO time, epoch milliseconds or a text).
final
- labels → bool
-
Whether the time axis writes its labels.
final
- linear → bool
-
no setter
- max → double?
-
final
- maxBarSpacing → double
-
Pixels from one row to the next when the graph first shows.
final
- maxBarWidth → double?
-
The widest a bar or a candle is drawn, in the middle of its place;
null: its share of the place, however wide.
final
- min → double?
-
final
- minBarSpacing → double
-
Pixels from one row to the next when the graph first shows.
final
- moreHistory → bool
-
Whether there are rows older than the first: the page sets it false
once it has loaded them all, and the graph stops asking.
final
- morph → double
-
Milliseconds a line takes to move to new rows (a range change): each
point travels from where the old line was above it. 0: it jumps.
final
- overscroll → bool
-
false: the view stays on the rows there are. Zooming out stops when
they fill the plot, and panning stops at the first row and at the last
(with rightOffset of room). true: it may be dragged and zoomed past
them, over empty plot (as clamp allows).
final
- rightOffset → double
-
Rows of empty room right of the last row when the graph first shows.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → String
-
index: rows evenly spaced, one place each.linear: each row where its field's number is between min and max (the rows' own least and most when not given); the view is that stretch, and does not move.final - slots → int?
-
The positions a fitted view spans when it is more than the rows there
are (a trading day not over yet: the line ends partway across).
final
- tickEvery → int?
-
A time label every this many positions (30: each half hour of minute
rows); null for the smallest round step whose labels stand apart.
final
- ticks → String
-
step: a label every so many rows.calendar: at the rows that start an hour, a day, a month or a year, whichever stands apart, each labeled as its unit.final -
tickValues
→ List<
GraphTick> -
The ticks themselves, when the graph does not choose them: on a linear
scale values, on rows their places.
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