Skip to main content
100%

Untitled

✓ Published0🌍 Public
HHieuVu179
Last edited Jan 6, 2023
Created on Jan 5, 2023
Forked from HTML Starter

This example shows a basic bar chart comparing categorical names against numeric amounts. The chart uses SVG rendering with steel-blue bars and displays both x and y axes. The code loads data from a CSV file called "amounts.csv", converts the amount values to numbers, and uses D3 v6 scales including `d3.scaleBand` for the categorical x-axis and `d3.scaleLinear` for the y-axis. The bars are appended as SVG `rect` elements, with axes generated using `d3.axisBottom` and `d3.axisLeft`. The visualization is built within a React framework context, though the rendering logic itself is plain D3.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes