Commits

Chris Leonello committed accff68

Fixed bug #4, series of unequal data length not rendering. This was introduced with o.6.4 release and stacked data charts.

  • Participants
  • Parent commits c56c9b3

Comments (0)

Files changed (2)

 logoDivToken = <div id=Index>
-logoDivValue = <div id=IPageLogo> <div id="navhome" onclick="location.href='../../index.php';"></div> <div id="navexamples" onclick="location.href='../../tests/';"></div> <div id="navdocs" onclick="location.href='../index.html';"></div><div id="navdownload" onclick="location.href='http://www.bitbucket.org/cleonello/jqplot';"></div> </div><div id=Index>
+logoDivValue = <div id=IPageLogo> <div id="navhome" onclick="location.href='http://www.jqplot.com/index.php';"></div> <div id="navexamples" onclick="location.href='../../tests/';"></div> <div id="navdocs" onclick="location.href='../index.html';"></div><div id="navdownload" onclick="location.href='http://www.bitbucket.org/cleonello/jqplot';"></div> </div><div id=Index>
 h1Token = <h1 class=CTitle>
-h1Value = <div class="CTitle logo"> <div id="navhome" onclick="location.href='../../index.php';"></div> <div id="navexamples" onclick="location.href='../../tests/';"></div> <div id="navdocs" onclick="location.href='../index.html';"></div><div id="navdownload" onclick="location.href='http://www.bitbucket.org/cleonello/jqplot/downloads/';"></div>
+h1Value = <div class="CTitle logo"> <div id="navhome" onclick="location.href='http://www.jqplot.com/index.php';"></div> <div id="navexamples" onclick="location.href='../../tests/';"></div> <div id="navdocs" onclick="location.href='../index.html';"></div><div id="navdownload" onclick="location.href='http://www.bitbucket.org/cleonello/jqplot/downloads/';"></div>
 h1CloseToken = </h1>
 h1CloseValue = </div>

File src/jqplot.lineRenderer.js

         this.gridData = [];
         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])])
             }
         }