summaryrefslogtreecommitdiff
path: root/jarmon/jarmon.js
diff options
context:
space:
mode:
Diffstat (limited to 'jarmon/jarmon.js')
-rw-r--r--jarmon/jarmon.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js
index 51b1c33..a7d0adc 100644
--- a/jarmon/jarmon.js
+++ b/jarmon/jarmon.js
@@ -649,7 +649,8 @@ jarmon.Chart = function(template, recipe, downloader) {
};
var si = 0;
while(true) {
- if( Math.pow(1000, si+1)*0.9 > axis.max ) {
+ if( Math.pow(1000, si+1)*0.9 > axis.max
+ && -(Math.pow(1000, si+1))*0.9 < axis.min ) {
break;
}
si++;