From a0bb626923ea293995cbb7b5311958ec75fedb8d Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Mon, 2 Oct 2023 23:19:18 +0530 Subject: [PATCH] add calculatedRatio in scatter plot --- src/components/ScatterPlot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ScatterPlot.js b/src/components/ScatterPlot.js index 2b91dbe..97c332d 100644 --- a/src/components/ScatterPlot.js +++ b/src/components/ScatterPlot.js @@ -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") }