Skip to main content
100%

D3.js Tutorial

✓ Published1🌍 Public
Bbhargav83
Last edited Feb 19, 2023
Created on Feb 19, 2023
Forked from D3.js Tutorial

This example shows a bar chart of test scores for seven people, sorted from highest to lowest score, with royal blue bars, labeled axes, and hover opacity feedback on each bar. The visualization uses D3.js v5 with an SVG rendering approach, creating scales via `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis. It appends rectangles bound to an array of name-score objects, calls `d3.axisBottom` and `d3.axisLeft` for the axes, and sorts the data with `d3.descending`. The chart is embedded in a basic HTML page with a centered title.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes