-
Notifications
You must be signed in to change notification settings - Fork 1
/
Bubble.js
executable file
·93 lines (85 loc) · 2.68 KB
/
Bubble.js
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
var svg_dom = d3.select("#svg_domain").append('g');
svg_dom.append("svg:image")
.attr("xlink:href", "images/web1.png")
.attr("width", 100)
.attr("height", 100)
.attr("x", 50+100)
.attr("y",50);
svg_dom.append("text")
.attr("x", 100+100)
.attr("y", 200)
.text("Web Development")
.attr("text-decoration", "underline")
.attr("font-size", "20px")
.attr("text-anchor", "middle")
.attr("font-family", "Century Gothic")
.on('click', displayTags)
.on("mouseover", function(d){
d3.select(this).attr("fill", "blue")
})
.on("mouseout", function(d){
d3.select(this).attr("fill", "black")
});
svg_dom.append("svg:image")
.attr("xlink:href", "images/db1.png")
.attr("width", 100)
.attr("height", 100)
.attr("x", 300+200)
.attr("y",50);
svg_dom.append("text")
.attr("x", 350+200)
.attr("y", 200)
.text("Database/Data Engineer")
.attr("font-size", "20px")
.attr("text-decoration", "underline")
.attr("text-anchor", "middle")
.attr("font-family", "Century Gothic")
.on("click", displayTags)
.on("mouseover", function(d){
d3.select(this).attr("fill", "blue")
})
.on("mouseout", function(d){
d3.select(this).attr("fill", "black")
});
svg_dom.append("svg:image")
.attr("xlink:href", "images/gears1.png")
.attr("width", 100)
.attr("height", 100)
.attr("x", 50+100)
.attr("y",300);
svg_dom.append("text")
.attr("x", 100+100)
.attr("y", 450)
.text("Backend Developer")
.attr("font-size", "20px")
.attr("text-decoration", "underline")
.attr("text-anchor", "middle")
.attr("font-family", "Century Gothic")
.on("click", displayTags)
.on("mouseover", function(d){
d3.select(this).attr("fill", "blue")
})
.on("mouseout", function(d){
d3.select(this).attr("fill", "black")
});
svg_dom.append("svg:image")
.attr("xlink:href", "images/java1.png")
.attr("width", 100)
.attr("height", 100)
.attr("x", 300+200)
.attr("y",300);
svg_dom.append("text")
.attr("x", 350+200)
.attr("y", 450)
.text("Java Developer")
.attr("font-size", "20px")
.attr("text-anchor", "middle")
.attr("text-decoration", "underline")
.attr("font-family", "Century Gothic")
.on('click', displayTags)
.on("mouseover", function(d){
d3.select(this).attr("fill", "blue")
})
.on("mouseout", function(d){
d3.select(this).attr("fill", "black")
});