add calculatedRatio in scatter plot

This commit is contained in:
Pritimay Sarkar
2023-10-02 23:19:18 +05:30
parent 0646c8f11d
commit a0bb626923

View File

@@ -57,7 +57,7 @@ class ScatterPlot extends Component {
.enter()
.append("circle")
.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)
.style("fill", "#69b3a2")
}