Making a bar chart
This bar chart displays the median monthly rent in Berkeley, California, for eight ZIP codes, with costs scaled up by a factor of 1,000 from the original data. Using D3 v5, it maps the numeric Cost values to a linear scale for the x-axis and the categorical ZIP codes to a band scale for the y-axis, rendering SVG rectangles. The code employs `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, and customizes tick formatting with `d3.format`.