chart = {
const width = 900,
height = 900;
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width-50, height-10]);
var projection = d3
.geoMercator()
.fitSize([width, height], bboxNol);
var path = d3.geoPath().projection(projection);
var path2 = d3.geoPath().projection(projection);
var path3 = d3.geoPath().projection(projection);
var path4 = d3.geoPath().projection(projection);
var path5 = d3.geoPath().projection(projection);
var g = svg.selectAll('g').attr("id", "paths");
var c = svg.selectAll("circle")
var p = svg.selectAll("polyline")
var t = svg.selectAll("text")
var l = svg.selectAll("line")
staticLines(path, hexagon_nol_merge77.features,"rgb(250,250,250)",'.25','.1',"rgb(250,250,250)")
function staticLines(path, data, sfill, sOpac, sW, stroke){
g.enter().append("path")
.data(data)
.enter()
.append("path")
.attr('class','outlines')
.attr("d", path)
.style("fill", fillcolor)
.style('stroke-opacity',"blue")
.style("stroke-width", "1")
.style("stroke", stroke)
}
function fillcolor(d){
var color = 'rgb(100,100,100)'
if(category=="Redlining Grade"){
if(d.properties.properties.grade == "A"){color = "rgb(102,153,0)"}
if(d.properties.properties.grade == "B"){color = "rgb(181,228,88)"}
if(d.properties.properties.grade == "C"){color = "rgb(249,246,68)"}
if(d.properties.properties.grade == "D"){color = "rgb(244,52,42)"}
}
if(category=="Asthma Index"){
if(d.properties.properties.grade == "A"){color = "rgb(102,153,0)"}
if(d.properties.properties.grade == "B"){color = "rgb(181,228,88)"}
if(d.properties.properties.grade == "C"){color = "rgb(249,246,68)"}
if(d.properties.properties.grade == "D"){color = "rgb(244,52,42)"}
}
return color
}
return svg.node();
}