Commits

Sven Jacobs  committed ec19ffe

Fix for issue #472 (error in stacked bar chart with null values)

  • Participants
  • Parent commits 1afcfa5

Comments (0)

Files changed (1)

File src/plugins/jqplot.barRenderer.js

             
             if (this.barDirection == 'vertical') {
                 for (var i=0; i<gridData.length; i++) {
-                    if (this.data[i][1] == null) {
+                    if (!this._stack && this.data[i][1] == null) {
                         continue;
                     }
                     points = [];
                     // stacked
                     if (this._stack && this._prevGridData.length) {
                         ystart = this._prevGridData[i][1];
+
+                        if (ystart === null) {
+                            ystart = this._yaxis.series_u2p(0);
+                        }
                     }
                     // not stacked and first series in stack
                     else {