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