-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (45 loc) · 1.14 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>The d3 test</title>
<style>
.chart {
background-color: transparent;
}
.main text {
font: 10px sans-serif;
}
.axis line,
.axis path {
shape-rendering: crispEdges;
stroke: black;
fill: none;
}
circle {
fill: red;
/* shape-rendering: crispEdges; */
}
svg {
position: absolute;
fill: transparent;
}
</style>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script src="https://d3js.org/d3-color.v1.min.js"></script>
</head>
<body>
<svg width="1500" height="1000" viewbox="0 0 1200 1200" preserveAspectRatio="xMidYMid meet">
<style>
.nameText{ font: bold 30px sans-serif; }
</style>
<text id="nameText" class="nameText" x="50" y="50" fill="black">Move mouse over the dots!</text>
Sorry, your browser does not support inline SVG.
</svg>
<svg height="30" width="200">
</svg>
<script src="gra.js"></script>
<script type="text/javascript" src="f_force.js"></script>
</body>
</html>