Skip to main content
100%

Bar Chart Example with CSV Dataset

✓ Published0🌍 Public
Aachyutanandmishra17@gmail.com
Last edited Mar 12, 2023
Created on Mar 12, 2023
Forked from HTML Starter

This example shows a bar chart comparing dog breed data loaded from a remote CSV file. The chart uses D3.js v6 within an HTML page to render SVG bars scaled by value, with x and y axes positioned using margins. It creates a linear y-scale and a band x-scale, then appends rectangles for each data row. The data is fetched via `d3.csv`, and axes are drawn with `d3.axisBottom` and `d3.axisLeft`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes