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.