-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVisTrial.html
More file actions
46 lines (29 loc) · 969 Bytes
/
VisTrial.html
File metadata and controls
46 lines (29 loc) · 969 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
45
46
<!DOCTYPE html>
<!--Just a trial -->
<html lang = "en">
<!-- import d3.v5..min.js -->
<script src = "https://d3js.org/d3.v5.min.js"> </script>
<head>
<title> Just trying out d3 visualizations </title>
<!-- meta info -->
<meta charset="uft-8">
<meta name = "description" content = "Just a trial file of what d3 can do">
<meta name = "author" content = "Shaun Jose">
<!-- refresh document every 10 minutes -->
<meta http-equiv="refresh" content="3000 ">
</head>
<body>
<h1> Hi? </h1>
<!-- add cool crazy shtuff -->
<!-- define svg (to be used for main visualization) -->
<svg id = "mad_shtuff" width = "100%" height = "100%"/>
<script>
d3.select('h1').style('color', 'red');
d3.select("body")
.selectAll("p")
.data([4, 8, 15, 16, 23, 42])
.enter().append("p")
.text(function(d) { return "I’m number " + d + "!"; });
</script>
</body>
</html>