Fork of Making a Bar Chart
✓ Published0🌍 Public
This chart shows the marks of 10 students as individual bars. The bar lengths encode the mark values, while the vertical positions correspond to each student’s ID. The visualization uses d3’s `scaleBand` and `scaleLinear` to map student IDs and marks to SVG pixel coordinates. The data is loaded from a CSV file using d3’s `csv` function, and the marks are parsed to numbers before rendering. Each bar is drawn as a `rect` element, with the bar’s height derived from `yscale.bandwidth`.
AI-generated descriptionMIT Licensed