Spaces:
Runtime error
Runtime error
Charles De Dampierre
commited on
Commit
·
2ced838
1
Parent(s):
9a11231
change size of boxes
Browse files- src/Map.jsx +3 -1
- src/index.css +2 -0
src/Map.jsx
CHANGED
@@ -176,6 +176,7 @@ function MapView() {
|
|
176 |
});
|
177 |
|
178 |
|
|
|
179 |
// Add text labels for topic names
|
180 |
g
|
181 |
.selectAll("rect.topic-label-background")
|
@@ -198,7 +199,7 @@ function MapView() {
|
|
198 |
const textLength = first10Words.length * 8; // Adjust the multiplier for width as needed
|
199 |
return textLength;
|
200 |
})
|
201 |
-
.attr("height",
|
202 |
.style("fill", "white") // Set the white fill color
|
203 |
.style("stroke", "grey") // Set the blue border color
|
204 |
.style("stroke-width", 2); // Set the border width
|
@@ -358,6 +359,7 @@ function MapView() {
|
|
358 |
null
|
359 |
)}
|
360 |
</div>
|
|
|
361 |
</div>
|
362 |
)}
|
363 |
</div>
|
|
|
176 |
});
|
177 |
|
178 |
|
179 |
+
|
180 |
// Add text labels for topic names
|
181 |
g
|
182 |
.selectAll("rect.topic-label-background")
|
|
|
199 |
const textLength = first10Words.length * 8; // Adjust the multiplier for width as needed
|
200 |
return textLength;
|
201 |
})
|
202 |
+
.attr("height", 30) // Set the height of the white box
|
203 |
.style("fill", "white") // Set the white fill color
|
204 |
.style("stroke", "grey") // Set the blue border color
|
205 |
.style("stroke-width", 2); // Set the border width
|
|
|
359 |
null
|
360 |
)}
|
361 |
</div>
|
362 |
+
|
363 |
</div>
|
364 |
)}
|
365 |
</div>
|
src/index.css
CHANGED
@@ -106,8 +106,10 @@ h2 {
|
|
106 |
.text-container p {
|
107 |
margin: 10px;
|
108 |
padding: 2px 0;
|
|
|
109 |
}
|
110 |
|
|
|
111 |
/* Style for the scatter plot circles */
|
112 |
circle {
|
113 |
cursor: pointer;
|
|
|
106 |
.text-container p {
|
107 |
margin: 10px;
|
108 |
padding: 2px 0;
|
109 |
+
|
110 |
}
|
111 |
|
112 |
+
|
113 |
/* Style for the scatter plot circles */
|
114 |
circle {
|
115 |
cursor: pointer;
|