protected void DrawExplicitLabels(int i){
  paint.setTextAlign(Paint.Align.RIGHT);
  if (i == 0)   paint.setTextAlign(Paint.Align.LEFT);
  String x_values=String.format("%.1f",i * x_axis_ratio);
  paint.setColor(Color.BLACK);
  if (labels != null)   canvas.drawText(labels.get(i),horizontal_width - 10,height - 38,paint);
 else   canvas.drawText(x_values,horizontal_width - 10,height - 38,paint);
}

protected void DrawExplicitLabels ( int i ) { paint . setTextAlign ( Paint . Align . RIGHT ) ; if ( i == 0 ) paint . setTextAlign ( Paint . Align . LEFT ) ; String x_values = String . format ( "%.1f" , i * x_axis_ratio ) ; paint . setColor ( Color . BLACK ) ; if ( labels != null ) canvas . drawText ( labels . get ( i ) , horizontal_width - 10 , height - 38 , paint ) ; else canvas . drawText ( x_values , horizontal_width - 10 , height - 38 , paint ) ; }
this function plots the breakdown labels for x axis given the labels are explicitly defined using setlabels ( ) method
