disjointMeasureAxisSpecs property

void disjointMeasureAxisSpecs=(LinkedHashMap<String, NumericAxisSpec>? axisSpecs)

Sets a map of disjoint measure axes for the chart.

Disjoint measure axes can be used to scale a sub-set of series on the chart independently from the primary and secondary axes. The general use case for this type of chart is to show differences in the trends of the data, without comparing their absolute values.

Disjoint axes will not render any tick or gridline elements. With independent scales, there would be a lot of collision in labels were they to do so.

If any series is rendered with a disjoint axis, it is highly recommended to render all series with disjoint axes. Otherwise, the chart may be visually misleading.

A LinkedHashMap is used to ensure consistent ordering when painting the axes.

Implementation

set disjointMeasureAxisSpecs(
    LinkedHashMap<String, NumericAxisSpec>? axisSpecs) {
  _newDisjointMeasureAxesSpec = axisSpecs;

  // Must set the spec to the current axis instance in the case of
  // errant reads that expect the spec to be changed.
  axisSpecs?.forEach((axisId, axisSpec) {
    if (_disjointMeasureAxes.containsKey(axisId)) {
      axisSpec.configure(
          _disjointMeasureAxes[axisId]!, context, graphicsFactory!);
    }
  });
}