@Override public void drawSeries(Canvas canvas,Paint paint,List<Float> points,XYSeriesRenderer seriesRenderer,float yAxisValue,int seriesIndex,int startIndex){
  int seriesNr=mDataset.getSeriesCount();
  int length=points.size();
  paint.setColor(seriesRenderer.getColor());
  paint.setStyle(Style.FILL);
  float halfDiffX=getHalfDiffX(points,length,seriesNr);
  int start=0;
  if (startIndex > 0) {
    start=2;
  }
  for (int i=start; i < length; i+=4) {
    if (points.size() > i + 3) {
      float xMin=points.get(i);
      float yMin=points.get(i + 1);
      float xMax=points.get(i + 2);
      float yMax=points.get(i + 3);
      drawBar(canvas,xMin,yMin,xMax,yMax,halfDiffX,seriesNr,seriesIndex,paint);
    }
  }
  paint.setColor(seriesRenderer.getColor());
}

@ Override public void drawSeries ( Canvas canvas , Paint paint , List < Float > points , XYSeriesRenderer seriesRenderer , float yAxisValue , int seriesIndex , int startIndex ) { int seriesNr = mDataset . getSeriesCount ( ) ; int length = points . size ( ) ; paint . setColor ( seriesRenderer . getColor ( ) ) ; paint . setStyle ( Style . FILL ) ; float halfDiffX = getHalfDiffX ( points , length , seriesNr ) ; int start = 0 ; if ( startIndex > 0 ) { start = 2 ; } for ( int i = start ; i < length ; i += 4 ) { if ( points . size ( ) > i + 3 ) { float xMin = points . get ( i ) ; float yMin = points . get ( i + 1 ) ; float xMax = points . get ( i + 2 ) ; float yMax = points . get ( i + 3 ) ; drawBar ( canvas , xMin , yMin , xMax , yMax , halfDiffX , seriesNr , seriesIndex , paint ) ; } } paint . setColor ( seriesRenderer . getColor ( ) ) ; }
the graphical representation of a series .
