Changeset c1b4db72be228dd7111549631959edcf41b1e33b

Show
Ignore:
Timestamp:
03/18/09 20:41:54 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1237408914 +0000
git-parent:

[b2951c8a5d06fd47cdc24bb608defb3e643dabd6]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1237408914 +0000
Message:

make our inverted y-axis black magic a bit blacker.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ui/web/htdocs/js/recon.js

    rb2951c8 rc1b4db7  
    342342                           }, 
    343343                    pval = rpn_eval(val, ddata[i].reconnoiter_display_expression, meta); 
    344 console.log(pval); 
     344                if((val > 0 && pval < 0) || 
     345                   (val < 0 && pval > 0)) { 
     346                  // Sign inversion means we're being clever and using 
     347                  // the negative axis as a positive one. 
     348                  pval = Math.abs(pval); 
     349                } 
    345350                return pval.toFixed(axis.tickDecimals) + 
    346351                       ((meta.suffix != null) ? meta.suffix : '');