protected void drawXLabels(List<Double> xLabels,Double[] xTextLabelLocations,Canvas canvas,Paint paint,int left,int top,int bottom,double xPixelsPerUnit,double minX,double maxX){
  int length=xLabels.size();
  boolean showLabels=mRenderer.isShowLabels();
  boolean showGridY=mRenderer.isShowGridY();
  boolean showTickMarks=mRenderer.isShowTickMarks();
  for (int i=0; i < length; i++) {
    double label=xLabels.get(i);
    float xLabel=(float)(left + xPixelsPerUnit * (label - minX));
    if (showLabels) {
      paint.setColor(mRenderer.getXLabelsColor());
      if (showTickMarks) {
        canvas.drawLine(xLabel,bottom,xLabel,bottom + mRenderer.getLabelsTextSize() / 3,paint);
      }
      drawText(canvas,getLabel(mRenderer.getLabelFormat(),label),xLabel,bottom + mRenderer.getLabelsTextSize() * 4 / 3 + mRenderer.getXLabelsPadding(),paint,mRenderer.getXLabelsAngle());
    }
    if (showGridY) {
      paint.setColor(mRenderer.getGridColor(0));
      canvas.drawLine(xLabel,bottom,xLabel,top,paint);
    }
  }
  drawXTextLabels(xTextLabelLocations,canvas,paint,showLabels,left,top,bottom,xPixelsPerUnit,minX,maxX);
}

protected void drawXLabels ( List < Double > xLabels , Double [ ] xTextLabelLocations , Canvas canvas , Paint paint , int left , int top , int bottom , double xPixelsPerUnit , double minX , double maxX ) { int length = xLabels . size ( ) ; boolean showLabels = mRenderer . isShowLabels ( ) ; boolean showGridY = mRenderer . isShowGridY ( ) ; boolean showTickMarks = mRenderer . isShowTickMarks ( ) ; for ( int i = 0 ; i < length ; i ++ ) { double label = xLabels . get ( i ) ; float xLabel = ( float ) ( left + xPixelsPerUnit * ( label - minX ) ) ; if ( showLabels ) { paint . setColor ( mRenderer . getXLabelsColor ( ) ) ; if ( showTickMarks ) { canvas . drawLine ( xLabel , bottom , xLabel , bottom + mRenderer . getLabelsTextSize ( ) / 3 , paint ) ; } drawText ( canvas , getLabel ( mRenderer . getLabelFormat ( ) , label ) , xLabel , bottom + mRenderer . getLabelsTextSize ( ) * 4 / 3 + mRenderer . getXLabelsPadding ( ) , paint , mRenderer . getXLabelsAngle ( ) ) ; } if ( showGridY ) { paint . setColor ( mRenderer . getGridColor ( 0 ) ) ; canvas . drawLine ( xLabel , bottom , xLabel , top , paint ) ; } } drawXTextLabels ( xTextLabelLocations , canvas , paint , showLabels , left , top , bottom , xPixelsPerUnit , minX , maxX ) ; }
the graphical representation of the labels on the x axis .
