forked from nodejs/nodejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graph.html
115 lines (105 loc) · 2.61 KB
/
graph.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Survey Report 2018: Technologies | Node.js</title>
<style>
body,
html {
margin: 0;
}
body {
font-family: 'HelveticaNeue-Roman', Helvetica, Arial, sans-serif;
line-height: 1.5;
overflow: hidden;
}
.node {
stroke: #fff;
stroke-width: 2px;
}
.node circle {
stroke: #000;
stroke-width: 1.5px;
}
.textClass {
stroke: #323232;
font-weight: normal;
stroke-width: .1;
font-size: 5px;
}
.svg-container {
display: inline-block;
position: relative;
width: 100%;
padding-bottom: 100%;
/* aspect ratio */
vertical-align: top;
overflow: hidden;
margin-left: -50px;
}
.svg-content-responsive {
display: inline-block;
position: absolute;
top: 90px;
left: 0;
}
button {
display: inline-block;
padding: 10px 16px;
margin: 1em 0;
font-size: 14px;
font-size: 18px;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
background: #000;
border-color: #000;
color: #fff;
}
label {
display: inline-block;
width: 10em;
}
</style>
</head>
<body>
<!--
<button data-action="addNodesBE">Back End</button>
<button data-action="addNodesFE">Front End</button>
<button data-action="addNodesFS">Full Stack</button>
<button data-action="remove">remove</button> <br>
-->
<form>
<label>Developer Segment:</label>
<input type="radio" name="stack" value="ac" id="tr1" checked="checked">Back End
<input type="radio" name="stack" value="sc" id="tr2">Front End
<input type="radio" name="stack" value="smc" id="tr3">Full Stack
</form>
<form>
<label>Connection Types:</label>
<input type="radio" name="stack" value="ac" id="cr1" checked="checked"> All
<input type="radio" name="stack" value="sc" id="cr2"> Strong
<input type="radio" name="stack" value="smc" id="cr3"> Strong and Medium
</form>
<button data-action="addNodes">Draw</button>
<div id="graph-container"></div>
<script src="d3.v3.min.js"></script>
<script src="jquery.min.js"></script>
<script src="graph.min.js" async defer></script>
</body>
</html>