Skip to main content
100%

Lab2-Task2

✓ Published1🌍 Public
XXuân Vinh
Last edited Nov 1, 2023
Created on Oct 18, 2023
Forked from Lab2-Task1

This example displays a histogram of 20 fixed numeric values using SVG rectangles, with each bar’s height and color encoding the data magnitude. A linear color scale maps the minimum value to dark blue and the maximum to light blue. D3.js v4 selects the SVG, binds the array via `data()`, and appends `rect` elements for bars plus `text` elements showing each value in white. The rendering uses static JavaScript data, not an external dataset.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes