Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lab2-Task1

Public visualization

Viewing a saved revision (read-only)

61590bbf35ce4c36a87d1e58ea7570f4

Lab2-Task1

0 stars1🌍 Public
XXuân Vinh
Last edited Oct 18, 2023
Created on Oct 18, 2023
Forked from Lab1

This example displays a static histogram in an SVG element, showing the distribution of letters from the input string "NguyenXuanVinh" across six alphabetical bins. It uses raw JavaScript and the D3.js v4 library to render blue SVG rectangles of varying heights, each labeled with a bin name such as "A-D" or "V-Z". The code manually computes character ASCII values through a custom function and assigns each letter to a bin, then appends the rectangles to the SVG using standard DOM manipulation, with the chart title and axis labels omitted.

AI-generated description

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

See also React Starter.