Skip to main content
100%

Fork of Simple Bar Chart

✓ Published1🌍 Public
JJingxuan Yang
Last edited Feb 13, 2024
Created on Feb 6, 2024
Forked from Simple Bar Chart

This visualization displays a bar chart of the top 10 houses by living area (sqft) from a dataset, with house IDs on the x-axis and square footage on the y-axis. The main entry point (`index.js`) sorts the data in descending order, slices the first 10 entries, and passes them to a reusable `viz` function. The chart uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and axis labels from the `@curran/axis-labels` library, with bars rendered as `rect` elements.

AI-generated description

A bar chart showing the top 10 houses with largest living area.

Challenge

  • Fork this viz and modify it to show your own data
MIT Licensed

Similar vizzes