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')