Commits

cleonello  committed 8b3d0a5

Cleaned up some lint.

  • Participants
  • Parent commits fe62379
  • Tags 0.9.1

Comments (0)

Files changed (3)

File src/plugins/jqplot.highlighter.js

                         ystrs.unshift(hl.formatString);
                         str = $.jqplot.sprintf.apply($.jqplot.sprintf, ystrs);
                         break;
+                    default: // same as xy
+                        ystrs.unshift(xstr);
+                        ystrs.unshift(hl.formatString);
+                        str = $.jqplot.sprintf.apply($.jqplot.sprintf, ystrs);
+                        break;
                 } 
             }
             else {
                             str += ystrs[i] + hl.tooltipSeparator;
                         }
                         break;
+                    default: // same as 'xy'
+                        str = xstr;
+                        for (var i=0; i<ystrs.length; i++) {
+                            str += hl.tooltipSeparator + ystrs[i];
+                        }
+                        break;
+                    
                 }                
             }
         }

File src/plugins/jqplot.ohlcRenderer.js

                 formatString:'<table class="jqplot-highlighter"><tr><td>date:</td><td>%s</td></tr><tr><td>open:</td><td>%s</td></tr><tr><td>hi:</td><td>%s</td></tr><tr><td>low:</td><td>%s</td></tr><tr><td>close:</td><td>%s</td></tr></table>'
             };
         }
-    }
+    };
     
 	//$.jqplot.preInitHooks.push($.jqplot.OHLCRenderer.checkOptions);
     

File src/plugins/jqplot.pointLabels.js

         
             switch (p.location) {
                 case 'nw':
-                    xoffset = function(elem) { return -elem.outerWidth(true) - p.xpadding; }
-                    yoffset = function(elem) { return -elem.outerHeight(true) - p.ypadding; }
+                    xoffset = function(elem) { return -elem.outerWidth(true) - p.xpadding; };
+                    yoffset = function(elem) { return -elem.outerHeight(true) - p.ypadding; };
                     break;
                 case 'n':
-                    xoffset = function(elem) { return -elem.outerWidth(true)/2; }
-                    yoffset = function(elem) { return -elem.outerHeight(true) - p.ypadding; }
+                    xoffset = function(elem) { return -elem.outerWidth(true)/2; };
+                    yoffset = function(elem) { return -elem.outerHeight(true) - p.ypadding; };
                     break;
                 case 'ne':
-                    xoffset = function(elem) { return p.xpadding; }
-                    yoffset = function(elem) { return -elem.outerHeight(true) - p.ypadding; }
+                    xoffset = function(elem) { return p.xpadding; };
+                    yoffset = function(elem) { return -elem.outerHeight(true) - p.ypadding; };
                     break;
                 case 'e':
-                    xoffset = function(elem) { return p.xpadding; }
-                    yoffset = function(elem) { return -elem.outerHeight(true)/2; }
+                    xoffset = function(elem) { return p.xpadding; };
+                    yoffset = function(elem) { return -elem.outerHeight(true)/2; };
                     break;
                 case 'se':
-                    xoffset = function(elem) { return p.xpadding; }
-                    yoffset = function(elem) { return p.ypadding; }
+                    xoffset = function(elem) { return p.xpadding; };
+                    yoffset = function(elem) { return p.ypadding; };
                     break;
                 case 's':
-                    xoffset = function(elem) { return -elem.outerWidth(true)/2; }
-                    yoffset = function(elem) { return p.ypadding; }
+                    xoffset = function(elem) { return -elem.outerWidth(true)/2; };
+                    yoffset = function(elem) { return p.ypadding; };
                     break;
                 case 'sw':
-                    xoffset = function(elem) { return -elem.outerWidth(true) - p.xpadding; }
-                    yoffset = function(elem) { return p.ypadding; }
+                    xoffset = function(elem) { return -elem.outerWidth(true) - p.xpadding; };
+                    yoffset = function(elem) { return p.ypadding; };
                     break;
                 case 'w':
-                    xoffset = function(elem) { return -elem.outerWidth(true) - p.xpadding; }
-                    yoffset = function(elem) { return -elem.outerHeight(true)/2; }
+                    xoffset = function(elem) { return -elem.outerWidth(true) - p.xpadding; };
+                    yoffset = function(elem) { return -elem.outerHeight(true)/2; };
                     break;
                 default: // same as 'nw'
-                    xoffset = function(elem) { return -elem.outerWidth(true) - p.xpadding; }
-                    yoffset = function(elem) { return -elem.outerHeight(true) - p.ypadding; }
+                    xoffset = function(elem) { return -elem.outerWidth(true) - p.xpadding; };
+                    yoffset = function(elem) { return -elem.outerHeight(true) - p.ypadding; };
                     break;
             }