Skip to main content
100%

Lab2-Task1

✓ Published1🌍 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.

MIT Licensed

Similar vizzes