createRenderer method

  1. @override
CandleSeriesRenderer<T, D> createRenderer()
override

Create the candle series renderer.

Implementation

@override
CandleSeriesRenderer<T, D> createRenderer() {
  CandleSeriesRenderer<T, D> seriesRenderer;
  if (onCreateRenderer != null) {
    seriesRenderer = onCreateRenderer!(this) as CandleSeriesRenderer<T, D>;
    return seriesRenderer;
  }
  return CandleSeriesRenderer<T, D>();
}