Skip to main content
100%

Making a bar chart

✓ Published1🌍 Public
MMercPai
Last edited Jun 9, 2019
Created on Jun 9, 2019
Forked from 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`.

AI-generated description
MIT Licensed

Similar vizzes