Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
MMinaTvkl
Last edited Oct 5, 2019
Created on Oct 5, 2019
Forked from Making a Bar Chart

This example displays a horizontal bar chart ranking star systems by their distance from Earth in light-years, using data from a local CSV file. The visualization is built with D3 v5, employing `scaleLinear` and `scaleBand` to map distances and star names to SVG rectangles. Axes are generated using `axisLeft` and `axisBottom`, while the bar widths are scaled proportionally to each distance value. The chart is rendered entirely as SVG elements within a 960 by 500 canvas.

AI-generated description
MIT Licensed

Similar vizzes