add calculatedRatio in scatter plot
This commit is contained in:
@@ -57,7 +57,7 @@ class ScatterPlot extends Component {
|
|||||||
.enter()
|
.enter()
|
||||||
.append("circle")
|
.append("circle")
|
||||||
.attr("cx", function (d, i) { return x(2023 - d.birthYear); })
|
.attr("cx", function (d, i) { return x(2023 - d.birthYear); })
|
||||||
.attr("cy", function (d) { return y(d.resultRatio); })
|
.attr("cy", function (d) { return y(d.resultRatio || d.calculatedRatio); })
|
||||||
.attr("r", 1.5)
|
.attr("r", 1.5)
|
||||||
.style("fill", "#69b3a2")
|
.style("fill", "#69b3a2")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user