-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
79 lines (75 loc) · 1.37 KB
/
index.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>D3 Dateline</title>
<style type="text/css">
.chart {
font-family: Arial, sans-serif;
font-size: 10px;
border: 1px solid black;
float:left;
width:600px;
height:210px;
overflow:auto;
white-space: nowrap;
}
.axis path, .axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.letter {
fill: #ffffd0;
stroke-width: 2
}
.precise {
stroke: #000000;
}
.notprecise {
stroke: #ff2c00;
}
.link {
fill:none;
stroke:grey;
stroke-width:1
}
.arrowhead {
stroke: grey;
fill: grey;
stroke-width:1
}
.bar {
fill: steelblue;
}
.fromR {
fill: #dca2ea;
}
.fromF {
fill: #d7faaa;
}
.monthaxis {
font-size: 300%;
}
text.shadow {
stroke: #fff;
stroke-width: 3px;
stroke-opacity: .8;
}
</style>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="d3dateline.js"></script>
<script>
function itemclick(d) {
// this function will be called when a node is clicked
alert(d.id);
}
window.onload = function() {
loadchart("svgContent", "demodata.json");
}
</script>
</head>
<body>
<div id="svgContent" class="chart"></div>
</body>
</html>