ChartConfig class

Chart's general configuration.

Annotations

Constructors

ChartConfig({required int granularity, ChartAxisConfig chartAxisConfig = const ChartAxisConfig(), ChartTimeConfig chartTimeConfig = const ChartTimeConfig(), int pipSize = 4, bool snapMarkersToIntervals = true, bool magnetEnabled = false})
Initializes chart's general configuration.
const
ChartConfig.fromJson(Map<String, dynamic> json)
Initializes from JSON.
factory

Properties

chartAxisConfig ChartAxisConfig
Chart Axis configuration.
final
chartTimeConfig ChartTimeConfig
Chart time formatting and timezone configuration.
final
granularity int
Granularity.
final
hashCode int
The hash code for this object.
no setteroverride
magnetEnabled bool
Whether new drawing tool points snap to the nearest candle's time bucket instead of the exact cursor position ("magnet" mode).
final
pipSize int
PipSize, number of decimal digits when showing prices on the chart.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapMarkersToIntervals bool
Whether markers' x-positions should snap to interval buckets (e.g., candle).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialization to JSON. Serves as value in key-value storage.
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant ChartConfig other) bool
The equality operator.
override