chart5 = {
const svg = d3.create('svg')
.attr("viewBox", [0, 0, width, height]);
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 Cases Over Time: Norfolk District');
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", 500)
.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('path')
.datum(chart5_data)
.style('fill', 'none')
.style('stroke', 'teal')
.style('stroke-width', '3')
.style('stroke-miterlimit', '1')
.attr('d', line);
return svg.node();
}