commit/galaxy-central: jgoecks: Small bug fixes for Circster.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/340438c62171/ changeset: 340438c62171 user: jgoecks date: 2012-11-15 00:50:20 summary: Small bug fixes for Circster. affected #: 1 file diff -r cc7df5ca1d47dbbd98614c21589435f84c67f9f5 -r 340438c62171578078323d39da398d5053b69d0a static/scripts/viz/circster.js --- a/static/scripts/viz/circster.js +++ b/static/scripts/viz/circster.js @@ -84,6 +84,11 @@ * Format number for display at a tick. */ formatNum: function(num, sigDigits) { + // Use default of 2 sig. digits. + if (sigDigits === undefined) { + sigDigits = 2; + } + var rval = null; if (num < 1) { rval = num.toPrecision(sigDigits); @@ -866,7 +871,7 @@ if (typeof d === 'string' || !d.max) { return 0; } return d.max; }); - return [ 0, (max_data && typeof max_data !== 'string' ? this._quantile(values, 0.98) : 0) ]; + return [ 0, (max_data && typeof max_data !== 'string' ? this._quantile(max_data, 0.98) : 0) ]; } }); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket