protected void createRenderers(CombinedChart chart,ChartAnimator animator,ViewPortHandler viewPortHandler){
  mRenderers=new ArrayList<>();
  DrawOrder[] orders=chart.getDrawOrder();
  for (  DrawOrder order : orders) {
switch (order) {
case BAR:
      if (chart.getBarData() != null)       mRenderers.add(new BarChartRenderer(chart,animator,viewPortHandler));
    break;
case BUBBLE:
  if (chart.getBubbleData() != null)   mRenderers.add(new BubbleChartRenderer(chart,animator,viewPortHandler));
break;
case LINE:
if (chart.getLineData() != null) mRenderers.add(new LineChartRenderer(chart,animator,viewPortHandler));
break;
case CANDLE:
if (chart.getCandleData() != null) mRenderers.add(new CandleStickChartRenderer(chart,animator,viewPortHandler));
break;
case SCATTER:
if (chart.getScatterData() != null) mRenderers.add(new ScatterChartRenderer(chart,animator,viewPortHandler));
break;
}
}
}

protected void createRenderers ( CombinedChart chart , ChartAnimator animator , ViewPortHandler viewPortHandler ) { mRenderers = new ArrayList < > ( ) ; DrawOrder [ ] orders = chart . getDrawOrder ( ) ; for ( DrawOrder order : orders ) { switch ( order ) { case BAR : if ( chart . getBarData ( ) != null ) mRenderers . add ( new BarChartRenderer ( chart , animator , viewPortHandler ) ) ; break ; case BUBBLE : if ( chart . getBubbleData ( ) != null ) mRenderers . add ( new BubbleChartRenderer ( chart , animator , viewPortHandler ) ) ; break ; case LINE : if ( chart . getLineData ( ) != null ) mRenderers . add ( new LineChartRenderer ( chart , animator , viewPortHandler ) ) ; break ; case CANDLE : if ( chart . getCandleData ( ) != null ) mRenderers . add ( new CandleStickChartRenderer ( chart , animator , viewPortHandler ) ) ; break ; case SCATTER : if ( chart . getScatterData ( ) != null ) mRenderers . add ( new ScatterChartRenderer ( chart , animator , viewPortHandler ) ) ; break ; } } }
creates the renderers needed for this combined - renderer in the required order . also takes the draworder into consideration .
