flotr2.nolibs.js
function(noTicks, min, max, decimals){
    var delta = (max - min) / noTicks,
        magn = Flotr.getMagnitude(delta),
        tickSize = 10,
        norm = delta / magn; // Norm is between 1.0 and 10.0.
        
    if(norm < 1.5) tickSize = 1;
    else if(norm < 2.25) tickSize = 2;
    else if(norm < 3) tickSize = ((decimals === 0) ? 2 : 2.5);
    else if(norm < 7.5) tickSize = 5;
    
    return tickSize * magn;
  }
function(noTicks, min, max, decimals){
    var delta = (max - min) / noTicks,
        magn = Flotr.getMagnitude(delta),
        tickSize = 10,
        norm = delta / magn; // Norm is between 1.0 and 10.0.
        
    if(norm < 1.5) tickSize = 1;
    else if(norm < 2.25) tickSize = 2;
    else if(norm < 3) tickSize = ((decimals === 0) ? 2 : 2.5);
    else if(norm < 7.5) tickSize = 5;
    
    return tickSize * magn;
  }
function ( noTicks , min , max , decimals ) { var delta = ( max - min ) / noTicks , magn = Flotr . getMagnitude ( delta ) , tickSize = 10 , norm = delta / magn ; // Norm is between 1.0 and 10.0. if ( norm < 1.5 ) tickSize = 1 ; else if ( norm < 2.25 ) tickSize = 2 ; else if ( norm < 3 ) tickSize = ( ( decimals === 0 ) ? 2 : 2.5 ) ; else if ( norm < 7.5 ) tickSize = 5 ; return tickSize * magn ; }
Function calculates the ticksize and returns it.
@param {Integer} noTicks - number of ticks
@param {Integer} min - lower bound integer value for the current axis
@param {Integer} max - upper bound integer value for the current axis
@param {Integer} decimals - number of decimals for the ticks
@return {Integer} returns the ticksize in pixels
Function calculates the ticksize and returns it .