forked from ayushGHub/CSE332_SampleCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataLoad.html
More file actions
44 lines (39 loc) · 987 Bytes
/
dataLoad.html
File metadata and controls
44 lines (39 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!-- Author : Ayush Kumar - aykumar@cs.stonybrook.edu -->
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <script src="../d3.min.js"></script> Use D3 library from CDN -->
<script src="https://d3js.org/d3.v4.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css"></link>
<style>
/* .error {
color: red
}
.myclass{
color:'red'
}*/
</style>
</head>
<body>
<script>
d3.csv("/data/eyet.csv", function(data) {
for (var i = 0; i < data.length; i++) {
console.log(data[i].Timestamp);
console.log(data[i].StimuliName);
console.log(data);
}
});
/*
d3.json("data/try.json", function(data) {
console.log(data);
});
d3.tsv("/data/data.tsv", function(data) {
for (var i = 0; i < data.length; i++) {
console.log(data[i].x);
console.log(data[i].y);
}
});
*/
</script>
</body>
</html>