Commits

Chris Leonello  committed 4929a9f

Fixed typo of synchronizeHighlight option.

  • Participants
  • Parent commits e3d41ea

Comments (0)

Files changed (1)

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