chart = {
const width = 1660,
height = 1660;
const svg = d3.create("svg")
.attr("viewBox", [400, 415, width-900, height-445]);
var projection = d3
.geoMercator()
.fitSize([width - 50, height - 50], bbox);
var path1 = d3.geoPath().projection(projection);
var path2 = d3.geoPath().projection(projection);
var path3 = d3.geoPath().projection(projection);
var path4 = d3.geoPath().projection(projection);
var g = svg.append("g").attr("id", "paths");
g.selectAll("path2")
.data(streets.features)
.enter()
.append("path")
.attr('class','outlines')
.attr("d", path2)
.style("fill", "none")
.style('stroke-opacity','1')
.style("stroke-width", '.25')
.style("stroke", "red")
g.selectAll("path3")
.data(bldgs.features)
.enter()
.append("path")
.attr('class','outlines')
.attr("d", path3)
.style("fill", "rgb(240,240,240)")
.style("fill-opacity", "1")
.style('stroke-opacity','.1')
.style("stroke-width", '.5')
.style("stroke", "black")
var c = svg.selectAll("circle")
.data(personal_spots.features)
.enter()
.append("circle")
.attr("cx", function(d) {return path1.centroid(d)[0]})
.attr("cy", function(d) {return path1.centroid(d)[1]})
.attr('r',3)
.style('fill','cyan')
.style('fill-opacity','1')
function mypointsText(event,d){
console.log(d)
}
svg
.append("text")
.attr('x','420')
.attr('y','460')
.style('font-family','helvetica')
.style('font-size','16px')
.style('font-weight','bold')
.text('Places to Know at RPI')
svg
.append("text")
.attr('x','420')
.attr('y','500')
.style('font-family','helvetica')
.style('font-size','12px')
.style('font-weight','bold')
.text('Building Location:')
svg
.append("line")
.attr('x1','420')
.attr('y1','465')
.attr('x2','590')
.attr('y2','465')
.style("stroke-width", '1')
.style("stroke", "rgb(0,0,0)")
return svg.node();
}