Commits

cguillot  committed c61569c

On pie charts, n firefox 4 and 5, instead of having legends, one has "Undefined". (TEQ-458)

  • Participants
  • Parent commits d5dfeb1

Comments (0)

Files changed (1)

File src/plugins/jqplot.pieRenderer.js

                     fstr = this.dataLabelFormatString || '%d%%';
                     label = $.jqplot.sprintf(fstr, gd[i][2]*100);
                 }
-                else if (this.dataLabels.constructor == Array) {
+                else if (this.dataLabels.push != undefined) {
                     fstr = this.dataLabelFormatString || '%s';
                     label = $.jqplot.sprintf(fstr, this.dataLabels[i]);
                 }