Commits

Anonymous committed 652db9a

fixed typo in pointLabels causing bug with wrong label on horizontal bars.

Comments (0)

Files changed (1)

src/plugins/jqplot.pointLabels.js

         this.labelsFromSeries = false;
         // prop: seriesLabelIndex
         // array index for location of labels within data point arrays.
-        // if null, will use the last element of teh data point array.
+        // if null, will use the last element of the data point array.
         this.seriesLabelIndex = null;
         // prop: labels
         // array of arrays of labels, one array for each series.
         if (p.seriesLabelIndex != null) {
             labelIdx = p.seriesLabelIndex;
         }
-        else if (this.renderer.constuctor == $.jqplot.BarRenderer && this.barDirection == 'horizontal') {
+        else if (this.renderer.constructor == $.jqplot.BarRenderer && this.barDirection == 'horizontal') {
+            console.log('* bar is: ', this.barDirection);
             labelIdx = 0;
         }
         else {
+            console.log('# bar is: ', this.barDirection);
             labelIdx = this._plotData[0].length -1;
         }
         p._labels = [];