Skip to main content
100%

Barchart of the 10 Highest Skyscrapers in the USA

✓ Published0🌍 Public
NNigel
Last edited May 14, 2023
Created on May 14, 2023
Forked from D3 Starter

This example displays a bar chart of the ten highest skyscrapers in the USA, with each bar labeled with its height in feet. Built with D3 v5, it uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, rendering bars as SVG rectangles within a group. The chart reads data from a static JavaScript array, applies a blue fill to the bars, and appends text labels above each bar. The code also relies on D3 selections to append an SVG container and a title to the page.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes