Home forums Using CanvasJS Graph a CSV file Reply To: Graph a CSV file

#8717

sid
Member
for (var i = 1; i <= allLinesArray.length-1; i++) {
                                var rowData = allLinesArray[i].split(',');
                                dataPoints.push({label:rowData[0],y:parseInt(rowData[1])});
                                dataPoints.push({label:rowData[0],y:parseInt(rowData[2])});
                               //dosnot plot 2 lines,plots values but not in correct way
                        }
  • This reply was modified 1 year, 6 months ago by  sid.