getSeriesRenderer method

SeriesRenderer<D> getSeriesRenderer(
  1. String? rendererId
)
inherited

Implementation

SeriesRenderer<D> getSeriesRenderer(String? rendererId) {
  var renderer = _seriesRenderers[rendererId];

  // Special case, if we are asking for the default and we haven't made it
  // yet, then make it now.
  if (renderer == null) {
    // TODO: Throw an error if
    // `rendererId != SeriesRenderer.defaultRendererId`?
    renderer = makeDefaultRenderer();
    defaultRenderer = renderer;
  }

  return renderer;
}