chart3 = {
const svg = d3.create('svg')
.attr("viewBox", [0, 0, width, height]);
svg.append('g')
.call(xAxis)
.append("text")
.attr("x", width/2)
.attr("y", 40)
.attr('font-weight',"bold")
.attr('font-family', 'sans-serif')
.attr('font-size', '16px')
.attr("fill", "currentColor")
.text("Date")
svg.append('g')
.call(yAxis)
.append("text")
.attr("x", width/2)
.attr("y", 0)
.attr('font-weight',"bold")
.attr('font-family', 'sans-serif')
.attr('font-size', '16px')
.attr("fill", "currentColor")
.classed('rotation', true)
.attr('transform', 'translate(-55,700) rotate(-90)')
.text("Total Number of Cases")
svg.append('text')
.attr('x', width / 2)
.attr('y', 30)
.attr('font-family', 'sans-serif')
.attr('font-size', '24px')
.attr('font-weight',"bold")
.attr('text-anchor', 'middle')
.attr('dominant-baseline', 'hanging')
.text('Total Number of Cases in VA over Time');
svg.append('path')
.datum(chart3_data)
.style('fill', 'none')
.style('stroke', 'teal')
.style('stroke-width', '3')
.attr('d', line)
return svg.node();
}