🌍 Public
Viewing a saved revision (read-only)
71ef8a11b9354321b216251ebf33529d
Lab2-Task1
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.