🌍 Public
Viewing a saved revision (read-only)
d7a8fdcad5174a7eb77378f5bddfefd6
D3.js Tutorial
This example shows a D3.js bar chart that displays the scores of seven individuals, sorted in descending order. The chart uses a band scale for the x-axis and a linear scale for the y-axis, with bars rendered as SVG rectangles that highlight on hover. The code calls on d3.scaleBand, d3.scaleLinear, d3.axisLeft, and d3.axisBottom to construct the axes and layout, while data is sorted with d3.descending before binding. The visualization is embedded in a minimal HTML page with D3 v5 loaded from a CDN.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.