Skip to main content
100%

Scales

✓ Published1🌍 Public
DdeafMother
Last edited Feb 16, 2020
Created on Feb 16, 2020

This example visualizes the heights of five tall buildings as a bar chart, with building names on the x-axis and height in meters on the y-axis. It uses the D3.js v5 library within a React framework, rendering as an SVG. The code employs `d3.scaleBand` for positioning along the x-axis and `d3.scaleLinear` for mapping height values to both the y-axis position and bar height. Data is loaded from a local `buildings.json` file, and axes are drawn using `d3.axisBottom` and `d3.axisLeft`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes