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], bboxMiami);
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, hexagonMiamiMerge.features,"rgb(200,225,200)",'.25','.1',"rgb(0,255,0)")
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',"black")
.style("stroke-width", "1")
.style("stroke", stroke)
}
function fillcolor(){
var color = 'rgb(255,0,0)'
}
polyline(radiusButton1,'red','1','0','none','angles')
function polyline(data, sfill, sOpac, sW, stroke,classVar){
g.enter().append("polyline")
.data(data)
.enter()
.append('polyline')
.attr('class',classVar)
.attr("points", function(d){return d})
.style("fill", sfill)
.style("fill-opacity", .5)
.style('stroke-opacity',sOpac)
.style("stroke-width", sW)
.style("stroke", stroke)
}
return svg.node();
}