Commits

Chris Leonello  committed 143a0a3

Fixed bug #45, plot would crash with series of different lengths.
Some clean up.

  • Participants
  • Parent commits a6626c2

Comments (0)

Files changed (3)

File src/jqplot.core.js

         // Overrides the pad, padMin and padMax values.  Set to false
         // to use the pad, padMin and padMax options.  If both min and max
         // are specified, will not autoscale.
-        this.autoscale = true;
+        this.autoscale = false;
         // prop: pad
         // Padding to extend the range above and below the data bounds.
         // The data range is multiplied by this factor to determine minimum and maximum axis bounds.

File src/jqplot.lineRenderer.js

         this._prevGridData = [];
         for (var i=0; i<this.data.length; i++) {
             this.gridData.push([xp.call(this._xaxis, data[i][0]), yp.call(this._yaxis, data[i][1])]);
-            if (pdata.length) {
+            if (pdata.length > i) {
                 this._prevGridData.push([xp.call(this._xaxis, pdata[i][0]), yp.call(this._yaxis, pdata[i][1])]);
             }
         }

File src/jqplot.linearAxisRenderer.js

                 if (this.max == null) {
                     this.max = this.min + rrange;
                 }
-                    
-                console.log('min: %s, max: %s, newmin: %s, newmax: %s, interval: %s, newinterval: %s, margin: %s, number: %s', min, max, this.min, this.max, ti, this.tickInterval, margin, this.numberTicks);
             }
             
             else {