CartesianChart<D> constructor
CartesianChart<D> ({
- bool? vertical,
- LayoutConfig? layoutConfig,
- Axis<
D> ? domainAxis, - NumericAxis? primaryMeasureAxis,
- NumericAxis? secondaryMeasureAxis,
- LinkedHashMap<
String, NumericAxis> ? disjointMeasureAxes,
Implementation
CartesianChart({
bool? vertical,
LayoutConfig? layoutConfig,
Axis<D>? domainAxis,
NumericAxis? primaryMeasureAxis,
NumericAxis? secondaryMeasureAxis,
LinkedHashMap<String, NumericAxis>? disjointMeasureAxes,
}) : vertical = vertical ?? true,
// [domainAxis] will be set to the new axis in [configurationChanged].
_newDomainAxis = domainAxis,
_primaryMeasureAxis = primaryMeasureAxis ?? NumericAxis(),
_secondaryMeasureAxis = secondaryMeasureAxis ?? NumericAxis(),
_disjointMeasureAxes =
// ignore: prefer_collection_literals
disjointMeasureAxes ?? LinkedHashMap<String, NumericAxis>(),
super(layoutConfig: layoutConfig ?? _defaultLayoutConfig);