Commits

Anonymous committed 8b3d0a5

Cleaned up some lint.

Comments (0)

Files changed (3)

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;
+                    
                 }                
             }
         }

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);
     

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;
             }
         
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.