makeSeries method

MutableSeries<D> makeSeries(
  1. Series<dynamic, D> series
)

Implementation

MutableSeries<D> makeSeries(Series<dynamic, D> series) {
  final s = MutableSeries<D>(series);

  // Setup the Renderer
  final rendererId =
      series.getAttribute(rendererIdKey) ?? SeriesRenderer.defaultRendererId;
  s
    ..setAttr(rendererIdKey, rendererId)
    ..setAttr(rendererKey, getSeriesRenderer(rendererId));

  return s;
}