Skip to content

Commit 81622d5

Browse files
committed
text inside bubble removed
1 parent 3f7165c commit 81622d5

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

src/components/Resources/Bubblechart.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ text {
1111
.chart {
1212
width: 1500px;
1313
height: 1500px;
14-
background: rgb(13, 13, 14);
1514

1615
}
1716

src/components/Resources/Bubblechart.js

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ const Bubblechart = (aData) => {
6060
.attr("y", 0);
6161

6262

63-
64-
6563
node.append("circle")
6664
.attr('r', function (d) {
6765
return d.r / (Math.sqrt(1.5));
@@ -85,29 +83,16 @@ const Bubblechart = (aData) => {
8583
function mousemove(event, d) {
8684
const [x, y] = d3.pointer(event);
8785
div
88-
.text(x + ", " + y)
89-
.style("left", (x) + "px")
90-
.style("top", (y) + "px");
86+
.text(d.data.login + ", " + d.data.contributions)
87+
.style("left", (x + 800) + "px")
88+
.style("top", (y + 200) + "px");
9189
}
9290

9391
function mouseout() {
9492
div.style("display", "none");
9593
}
9694

9795

98-
node.append("text")
99-
.attr("dy", ".3em")
100-
.style("text-anchor", "middle")
101-
.text(function (d) { return d.data.login })
102-
.style("fill", "#ffffff");
103-
104-
node.append("text")
105-
.attr("dy", "2em")
106-
.style("text-anchor", "middle")
107-
.text(function (d) { return d.data.contributions })
108-
.style("fill", "#EEEfff");
109-
110-
11196

11297
return (
11398
<div id="bubble" className="bubble">

0 commit comments

Comments
 (0)