-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbarchart1.html
93 lines (74 loc) · 1.65 KB
/
barchart1.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="d3-tip.js"></script>
<style>
.barchart1 rect {
fill: steelblue;
border-radius: 5px;
}
.barchart1 text {
fill: black;
font: 10px sans-serif;
text-anchor: end;
}
.axis text {
font: 10px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.circles {
}
.circles .point {
fill: steelblue;
}
.d3-tip {
border: 1px solid steelblue;
border-radius: 5px;
color: steelblue;
font-family: sans-serif;
padding: 5px 10px;
}
.lines path {
/*stroke: steelblue;*/
stroke-width: 2;
fill: none;
}
.circles .arc {
fill: red;
}
.violin {
fill:none;
}
circle.hidden {
fill: #ccc !important;
}
.extent {
fill: #000;
fill-opacity: .125;
stroke: #fff;
}
</style>
</head>
<body>
<h5>Practicing D3 basics</h5>
<svg class="barchart1"></svg>
<svg class="circles"></svg>
<svg class="lines"></svg>
<svg class="scatter"></svg>
<svg class="violin"></svg>
<script src="barchart.js"></script>
<script src="linechart.js"></script>
<script src="scatter.js"></script>
<script src="violin.js"></script>
</body>
</html>