comparison src/org/dancres/blitz/tools/dash/graph/Chart.java @ 6:48228766ed4c

when expecting floating point math, do floating point math
author dbrosius@mebigfatguy.com
date Thu, 14 May 2009 12:15:48 -0400
parents 3dc0c5604566
children 77db38eb3042
comparison
equal deleted inserted replaced
5:27ca8522be85 6:48228766ed4c
323 g.setColor( gridColor ); 323 g.setColor( gridColor );
324 if(yaxis<nLabels-1){ 324 if(yaxis<nLabels-1){
325 g.drawLine(xoff-3,(int)y,xoff+wid,(int)y); 325 g.drawLine(xoff-3,(int)y,xoff+wid,(int)y);
326 } 326 }
327 327
328 y+=(hi/(nLabels-1)); 328 y+=(hi/(nLabels-1.0));
329 329
330 } 330 }
331 331
332 } 332 }
333 else 333 else