CartesianChart<D> constructor

CartesianChart<D>({
  1. bool? vertical,
  2. LayoutConfig? layoutConfig,
  3. Axis<D>? domainAxis,
  4. NumericAxis? primaryMeasureAxis,
  5. NumericAxis? secondaryMeasureAxis,
  6. 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);