Chris Leonello avatar 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.

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>

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])])
             }
         }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.