Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

99505ab920d6497d9464dbdf3cce2115

Making a Bar Chart

0 stars0🌍 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