Chris Leonello avatar Chris Leonello committed 4929a9f

Fixed typo of synchronizeHighlight option.

Comments (0)

Files changed (1)

src/plugins/jqplot.pyramidRenderer.js

         // prop: highlightColors
         // an array of colors to use when highlighting a slice.
         this.highlightColors = [];
-        // prop: syncronizeHighlight
+        // prop: synchronizeHighlight
         // Index of another series to highlight when this series is highlighted.
-        // null or false to not syncronize.
-        this.syncronizeHighlight = false;
+        // null or false to not synchronize.
+        this.synchronizeHighlight = false;
         // prop: offsetBars
         // False will center bars on their y value.
         // True will push bars up by 1/2 bar width to fill between their y values.
         plot.plugins.pyramidRenderer.highlightedSeriesIndex = sidx;
         var opts = {fillStyle: s.highlightColors[pidx], fillRect: false};
         s.renderer.shapeRenderer.draw(canvas._ctx, points, opts);
-        if (!isNaN(s.syncronizeHighlight) && plot.series.length >= s.syncronizeHighlight && s.syncronizeHighlight !== sidx) {
-            s = plot.series[s.syncronizeHighlight];
+        if (s.synchronizeHighlight !== false && plot.series.length >= s.synchronizeHighlight && s.synchronizeHighlight !== sidx) {
+            s = plot.series[s.synchronizeHighlight];
             opts = {fillStyle: s.highlightColors[pidx], fillRect: false};
             s.renderer.shapeRenderer.draw(canvas._ctx, s._barPoints[pidx], opts);
         }
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.