GraphMarkSpec class
What a mark draws: candle (open, high, low, close), line and area
(y), bar (y, from zero).
Constructors
-
GraphMarkSpec({required String type, String y = '', String open = '', String high = '', String low = '', String close = '', Color color = const Color(0xFF2962FF), Color upColor = const Color(0xFF26A69A), Color downColor = const Color(0xFFEF5350), double width = 1.5, double fillOpacity = 0.18, bool fade = false, bool curved = false, double? overlay, String segmentBy = '', double dimInactive = 1, double endDot = 0, Color? endDotColor, bool pulse = false, String name = '', String? stack, double radius = 0, String colorField = '', List<
Color> colors = const [], double inner = 0, double gap = 0, double startAngle = 0, bool labels = false, Color? fillTo, bool colored = true, double dots = 0, String center = '', String centerLabel = ''}) -
const
-
GraphMarkSpec.fromJson(Json j, {Color? colorOf(String field)?, List<
Color> palette = const []}) -
colorOfgives the color of a mark that writes none (by the mark's field, so an area and the line along its top share one), andpalettean arc's colors row by row when it writes none.factory
Properties
- byDirection → bool
-
A candle, or a bar with open and close, is colored by its direction.
no setter
- center → String
-
An arc with a hole: what is written in it.
total: the sum of its values, and while a slice is selected that slice's value. Empty: nothing. centerLabel is written small under the figure (while a slice is selected, its label).final - centerLabel → String
-
An arc with a hole: what is written in it.
total: the sum of its values, and while a slice is selected that slice's value. Empty: nothing. centerLabel is written small under the figure (while a slice is selected, its label).final - close → String
-
final
- color → Color
-
final
- colored → bool
-
Whether the mark's color was written; one that writes none takes the
next of the style's palette (GraphStyleSpec.palette).
final
- colorField → String
-
A row field holding the row's own color (a slice's, a bar's).
final
-
colors
→ List<
Color> -
An arc's colors, row by row, where colorField gives none.
final
- curved → bool
-
final
- dimInactive → double
-
final
- dots → double
-
A line: a dot of this radius on every row (0: none).
final
- downColor → Color
-
final
- endDot → double
-
A dot of this radius on the last row (0: none), in endDotColor or
the mark's color, with a ring that swells and fades when pulse.
final
- endDotColor → Color?
-
final
-
extentFields
→ List<
String> -
The fields that bound the mark for autoscale.
no setter
- fade → bool
-
An area's fill fades to nothing at the bottom of the pane.
final
-
fields
→ List<
String> -
The row fields the mark reads on the y scale.
no setter
- fillOpacity → double
-
final
- fillTo → Color?
-
An area's color at the bottom of the pane, when it is not its own
(its fill runs from one to the other).
final
- gap → double
-
An arc: the hole's share of the radius (0: a pie), the room between
slices and where the first starts (degrees, clockwise from the top).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- high → String
-
final
- inner → double
-
An arc: the hole's share of the radius (0: a pie), the room between
slices and where the first starts (degrees, clockwise from the top).
final
- label → String
-
no setter
- labels → bool
-
A bar's value is written over it.
final
- low → String
-
final
- name → String
-
What a tooltip and a legend call the mark; empty for its field.
final
- open → String
-
final
- overlay → double?
-
The mark is on a scale of its own, fitted so it stands in this share
of the pane from its bottom (volume bars under a price line). It takes
no part in the pane's own scale.
final
- pulse → bool
-
final
- radius → double
-
A bar's corner radius (the top of a stack's last bar).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segmentBy → String
-
A line breaks where this row field changes (a session), and the parts
outside the band in use are drawn at dimInactive of their opacity.
final
- stack → String?
-
Bars with the same stack stand on one another; bars with none (or
another) stand side by side in the row's place.
final
- startAngle → double
-
An arc: the hole's share of the radius (0: a pie), the room between
slices and where the first starts (degrees, clockwise from the top).
final
- type → String
-
final
- upColor → Color
-
final
- valueField → String
-
The field of the mark's value (a candle's close).
no setter
- width → double
-
final
- y → String
-
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