Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lab2-Task2

Public visualization

Viewing a saved revision (read-only)

bceb9e1801f840219739d09b2d7566b9

Lab2-Task2

0 stars1🌍 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.