I'm trying to simply access an array in Papaparse - and then spit out elements of that array either by header name or just by array address (1,1) etc.
However, I can't even get the data to load correctly. The count of lines shows up correctly at 258, but the whole thing reads[object Object], [object Object], [object Object] ...etc
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="PapaParse/papaparse.min.js"></script>
</head>
<body>
<script>
var results;
var data;
var file = "datapipe.csv";
Papa.parse(file, {
download: true,
header: true,
dynamicTyping: true,
delimiter: "|",
complete: function(results) {
data = results;
console.log("Remote file parsed!", results);
//document.write(results.data["1"][0] );
document.write(results.data );
}
});
</script>
</body>
</html>