1. stringfellow
  2. jqplot

Commits

cleonello  committed 1d68894

Added additional classes to point labels to identify them with css selectors.

  • Participants
  • Parent commits 9f15859
  • Branches default

Comments (0)

Files changed (1)

File src/plugins/jqplot.pointLabels.js

View file
                 p.formatter = this[ax]._ticks[0].formatter;
             }
         
-            for (var i=0; i<p.labels.length; i++) {
+            for (var i=p.labels.length-1; i>=0; i--) {
                 var pd = this._plotData;
                 var xax = this._xaxis;
                 var yax = this._yaxis;
                 
                 label = p.formatter(p.formatString, label);
                 
-                var elem = $('<div class="jqplot-point-label jqplot-series-'+this.index+'" style="position:absolute"></div>');
+                var elem = $('<div class="jqplot-point-label jqplot-series-'+this.index+' jqplot-point-'+i+'" style="position:absolute"></div>');
                 elem.insertAfter(sctx.canvas);
                 if (p.escapeHTML) {
                     elem.text(label);