forked from mikedewar/d3talk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.html
More file actions
26 lines (25 loc) · 747 Bytes
/
server.html
File metadata and controls
26 lines (25 loc) · 747 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<link type="text/css" rel="stylesheet" href="style.css">
<link type="text/css" rel="stylesheet" href="prettify.css">
<script type="text/javascript" src="prettify.js"></script>
<link type="text/css" rel="stylesheet" href="style.css">
<title></title>
</head>
<body onload="prettyPrint()">
<div id="body">
<div id="header">
<h1>now serve your JSON</h1>
<pre>python -m SimpleHTTPServer 8000</pre>
<h1>...so that d3 can make an http get request</h1>
<pre class="prettyprint">
d3.json(
"http://localhost:8000/data.json",
callback_function
)
</pre>
</div>
</div>
</body>
</html>