GraphYSpec class
A pane's y scale.
Constructors
-
GraphYSpec({String domain = 'visible', double? min, double? max, double marginTop = 0.1, double marginBottom = 0.1, List<
double> include = const [], String mode = 'linear', double width = 56, bool labels = true, int decimals = 2, String side = 'right', String prefix = '', String suffix = '', int ticks = 5, List<GraphTick> tickValues = const [], bool nice = false}) -
const
- GraphYSpec.fromJson(Json j)
-
factory
Properties
- decimals → int
-
final
- domain → String
-
visible: fitted to the rows in view (autoscale).data: to all rows.fixed: min to max.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
include
→ List<
double> -
Values the fitted domain always holds (a previous close, zero).
final
- labels → bool
-
Whether the price axis writes its labels.
final
- marginBottom → double
-
Room above and below the fitted values, as shares of their span.
final
- marginTop → double
-
Room above and below the fitted values, as shares of their span.
final
- max → double?
-
final
- min → double?
-
final
- mode → String
-
linear, orpercent: labels are the change from the first row in view.final - nice → bool
-
A fitted domain is rounded out to the ticks it is given, so the plot
starts and ends on a labeled line (the margins are then not added).
final
- prefix → String
-
Written before and after each label (
$,k,%).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- side → String
-
rightorleft: where the axis gutter is (one side for the graph: left when any pane says so).final - suffix → String
-
Written before and after each label (
$,k,%).final - ticks → int
-
About how many round ticks the axis has.
final
-
tickValues
→ List<
GraphTick> -
The ticks themselves, when the graph does not choose them.
final
- width → double
-
The axis gutter's width.
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