Commits

cleonello  committed 3ce861a

Avoid error with bar plots and bands property.

  • Participants
  • Parent commits 45fe7a9

Comments (0)

Files changed (1)

File src/jqplot.lineRenderer.js

                 }
             }
 
-            if (this.renderer.bands.show) {
+            if (this.type === 'line' && this.renderer.bands.show) {
                 ymax = this._yaxis.series_u2p(this.renderer.bands._min);
                 ymin = this._yaxis.series_u2p(this.renderer.bands._max);
             }
         s._highlightedPoint = pidx;
         plot.plugins.lineRenderer.highlightedSeriesIndex = sidx;
         var opts = {fillStyle: s.highlightColor};
-        if (s.renderer.bands.show) {
+        if (s.type === 'line' && s.renderer.bands.show) {
             opts.fill = true,
             opts.closePath = true;
         }