graduatedSymbols = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
svg.append("path")
.datum(topojson.feature(basepolygons, basepolygons.objects.states_simple))
.attr("fill", "#ccc")
.attr("d", path_basemap);
svg.append("path")
.datum(topojson.mesh(basepolygons, basepolygons.objects.states_simple, (a, b) => a !== b))
.attr("fill", "none")
.attr("stroke", "black")
.attr("stroke-linejoin", "round")
.attr("d", path_basemap);
svg.append("g")
.selectAll("circle")
.data(points.features
.map(d => (d.value = Math.sqrt(d.properties[attributeName]), d))
.sort((a, b) => b.value - a.value))
.join("circle")
.attr("transform", d => `translate(${path_points.centroid(d)})`)
.attr("r", d => radius(d.value))
.attr("fill", d => colors(d.value))
.attr("fill-opacity", 0.85)
//this is how we can change the opacity
.attr("stroke", "black")
//this is where you can change the outline color of the points, currently I have it set to 'black'
.attr("stroke-width", .5)
//this is where you can change the thickness or (width) of the outline around the point, here it is set to .5
.append("title")
.text(d => `${d.properties[idName]} : ${format(d.properties[attributeName])}`);
//this is what is used to display the values when you hover over each point
return svg.node();
}