Skip to content

Commit 639391b

Browse files
committed
fixed scaling
1 parent e7a1265 commit 639391b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/app/components/Chart.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Chart extends Component {
6464

6565
let tree = d3.tree()
6666
// this assigns width of tree to be 2pi
67-
.size([2 * Math.PI, radius / 1.4])
67+
.size([2 * Math.PI, radius / 1.3])
6868
.separation(function (a, b) { return (a.parent == b.parent ? 1 : 2) / a.depth });
6969

7070
let d3root = tree(hierarchy);
@@ -93,7 +93,7 @@ class Chart extends Component {
9393
});
9494

9595
node.append("circle")
96-
.attr("r", 10)
96+
.attr("r", 12)
9797

9898
//creating a d3.tip method where the html has a function that returns the data we passed into tip.show from line 120
9999
let tip = d3Tip()

src/app/styles/components/d3graph.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ body {
2424
/* this represents text for leaf nodes aka the ones with no children */
2525
.node--leaf {
2626
fill: #71e9e1;
27+
fill-opacity: 0.4;
2728
}
2829

2930
/* this represents those nodes that have children */
@@ -39,7 +40,7 @@ body {
3940
fill: none;
4041
stroke: #3853ea;
4142
stroke-opacity: 0.4;
42-
stroke-width: 3px;
43+
stroke-width: 5px;
4344
}
4445

4546
.d3-tip {

0 commit comments

Comments
 (0)