Commits

Anonymous committed 0adcae1

Fixed bug where donut plots showed value in radians instead of actual data value

Comments (0)

Files changed (1)

src/plugins/jqplot.donutRenderer.js

     
     // called with scope of series
     $.jqplot.DonutRenderer.prototype.draw = function (ctx, gd, options, plot) {
+		console.log(gd);
         var i;
         var opts = (options != undefined) ? options : {};
         // offset and direction of offset due to legend placement
                 }
                 else if (this.dataLabels == 'value') {
                     fstr = this.dataLabelFormatString || '%d';
-                    label = $.jqplot.sprintf(fstr, gd[i][1]);
+                    label = $.jqplot.sprintf(fstr, this.data[i][1]);
                 }
                 else if (this.dataLabels == 'percent') {
                     fstr = this.dataLabelFormatString || '%d%%';