Skip to content

Commit f45f110

Browse files
committed
adjusted d3 graph css
1 parent 4369dd2 commit f45f110

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/app/components/Chart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Chart extends Component {
8888
});
8989

9090
node.append("circle")
91-
.attr("r", 40.5)
91+
.attr("r", 35.5)
9292

9393
node
9494
.append("text")

src/app/styles/components/d3graph.css

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
/* this represents leaf nodes aka no children */
2-
.node {
3-
cursor: pointer;
4-
}
1+
@import url('https://fonts.googleapis.com/css?family=Raleway&display=swap');
52

3+
/* this represents leaf nodes aka no children */
64
.node circle {
7-
fill: #2e3634;
5+
fill: #5249f7;
86
}
97
.node text {
10-
font: 15px sans-serif;
8+
font-size: 20px;
9+
font-family: 'Raleway', sans-serif;;
1110
}
1211

1312
/* this represents those nodes that have children */
1413
.node--internal circle {
15-
fill: teal;
14+
fill: #d317c9;
1615
}
1716
/* modifies text of parent nodes (has children) */
1817
.node--internal text {
1918
fill: white;
19+
font-size: 30px;
20+
2021
}
2122
.link {
2223
fill: none;
23-
stroke: #bfe3da;
24-
stroke-opacity: 0.2;
25-
stroke-width: 10px;
24+
stroke: #3853ea ;
25+
stroke-opacity: 0.4;
26+
stroke-width: 30px;
2627
}

0 commit comments

Comments
 (0)