Skip to main content
100%

Making a bar chart: my grades

✓ Published2🌍 Public
DD0no
Last edited Sep 24, 2019
Created on Sep 24, 2019

This example shows a horizontal bar chart of a student’s final grades in university courses, with each bar’s length proportional to the numeric grade. The chart uses categorical labels on the y-axis and a linear scale on the x-axis. Built with D3 v5, the code loads data from a CSV file using `d3.csv`, creates scales via `d3.scaleLinear` and `d3.scaleBand`, and renders axes with `d3.axisLeft` and `d3.axisBottom`. Bars are appended as SVG rectangles, and the styling is defined in an external CSS file.

AI-generated description
MIT Licensed

Similar vizzes