protected void create_y_axis(int i,String y,int size){
  float ver_height=((graphheight / size) * i) + border;
  Log.e("index vlaue",i + "   " + size+ "   "+ height+ "  "+ graphheight+ "   "+ ver_height);
  if (i == size)   canvas.drawLine(horstart,ver_height,width - (border),ver_height,paint);
 else   canvas.drawLine(horstart,ver_height,border,ver_height,paint);
  paint.setColor(Color.BLACK);
  paint.setTextAlign(Paint.Align.RIGHT);
  canvas.drawText(y + "",horstart - 15,ver_height - 10,paint);
  paint.setTextAlign(Paint.Align.LEFT);
}

protected void create_y_axis ( int i , String y , int size ) { float ver_height = ( ( graphheight / size ) * i ) + border ; Log . e ( "index vlaue" , i + "   " + size + "   " + height + "  " + graphheight + "   " + ver_height ) ; if ( i == size ) canvas . drawLine ( horstart , ver_height , width - ( border ) , ver_height , paint ) ; else canvas . drawLine ( horstart , ver_height , border , ver_height , paint ) ; paint . setColor ( Color . BLACK ) ; paint . setTextAlign ( Paint . Align . RIGHT ) ; canvas . drawText ( y + "" , horstart - 15 , ver_height - 10 , paint ) ; paint . setTextAlign ( Paint . Align . LEFT ) ; }
this function is used to plot the y axis and its breakdown with value . uses drawline ( ) method to create the y axis and lines to show breakdown of y axis and drawtext ( ) method to plot labels related with breakdowns
