@Override 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();
  if (length > 0) {
    boolean showXLabels=mRenderer.isShowXLabels();
    boolean showGridY=mRenderer.isShowGridY();
    if (showGridY) {
      mGridPaint.setStyle(Paint.Style.STROKE);
      mGridPaint.setStrokeWidth(mRenderer.getGridLineWidth());
    }
    boolean showTickMarks=mRenderer.isShowTickMarks();
    DateFormat format=getDateFormat(xLabels.get(0),xLabels.get(length - 1));
    for (int i=0; i < length; i++) {
      long label=Math.round(xLabels.get(i));
      float xLabel=(float)(left + xPixelsPerUnit * (label - minX));
      if (showXLabels) {
        paint.setColor(mRenderer.getXLabelsColor());
        if (showTickMarks) {
          canvas.drawLine(xLabel,bottom,xLabel,bottom + mRenderer.getLabelsTextSize() / 3,paint);
        }
        drawText(canvas,format.format(new Date(label)),xLabel,bottom + mRenderer.getLabelsTextSize() * 4 / 3 + mRenderer.getXLabelsPadding(),paint,mRenderer.getXLabelsAngle());
      }
      if (showGridY) {
        mGridPaint.setColor(mRenderer.getGridColor(0));
        canvas.drawLine(xLabel,bottom,xLabel,top,mGridPaint);
      }
    }
  }
  drawXTextLabels(xTextLabelLocations,canvas,paint,true,left,top,bottom,xPixelsPerUnit,minX,maxX);
}

@ Override 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 ( ) ; if ( length > 0 ) { boolean showXLabels = mRenderer . isShowXLabels ( ) ; boolean showGridY = mRenderer . isShowGridY ( ) ; if ( showGridY ) { mGridPaint . setStyle ( Paint . Style . STROKE ) ; mGridPaint . setStrokeWidth ( mRenderer . getGridLineWidth ( ) ) ; } boolean showTickMarks = mRenderer . isShowTickMarks ( ) ; DateFormat format = getDateFormat ( xLabels . get ( 0 ) , xLabels . get ( length - 1 ) ) ; for ( int i = 0 ; i < length ; i ++ ) { long label = Math . round ( xLabels . get ( i ) ) ; float xLabel = ( float ) ( left + xPixelsPerUnit * ( label - minX ) ) ; if ( showXLabels ) { paint . setColor ( mRenderer . getXLabelsColor ( ) ) ; if ( showTickMarks ) { canvas . drawLine ( xLabel , bottom , xLabel , bottom + mRenderer . getLabelsTextSize ( ) / 3 , paint ) ; } drawText ( canvas , format . format ( new Date ( label ) ) , xLabel , bottom + mRenderer . getLabelsTextSize ( ) * 4 / 3 + mRenderer . getXLabelsPadding ( ) , paint , mRenderer . getXLabelsAngle ( ) ) ; } if ( showGridY ) { mGridPaint . setColor ( mRenderer . getGridColor ( 0 ) ) ; canvas . drawLine ( xLabel , bottom , xLabel , top , mGridPaint ) ; } } } drawXTextLabels ( xTextLabelLocations , canvas , paint , true , left , top , bottom , xPixelsPerUnit , minX , maxX ) ; }
the graphical representation of the labels on the x axis .
