From 977cd1aa62a885649a6349f7eaa0887dbd0aad3d Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Fri, 11 Apr 2025 10:17:56 -0400 Subject: [PATCH] Add parentheses around arithmetic operation --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 07581e6..ec3bc7a 100644 --- a/index.js +++ b/index.js @@ -215,7 +215,7 @@ function stateOrDistrictOrLanguage(d) { // const mapHeight = document.getElementById("indiaMap").getAttribute("height") const mapWidth = /*window.innerWidth - */document.querySelector("#svgContainer").offsetWidth * 0.85; // const mapHeight = document.querySelector("#svgContainer").offsetHeight; -const mapHeight = window.innerHeight - document.querySelector("#svgContainer").getBoundingClientRect().top * 0.7; +const mapHeight = (window.innerHeight - document.querySelector("#svgContainer").getBoundingClientRect().top) * 0.92; const svg = d3.select("#svgContainer") .append('svg')