🌍 Public
Viewing a saved revision (read-only)
5c039cef851941a99097f7f038b00866
Untitled
This example shows a bar chart with ten bars, each representing a randomly generated value. The chart is rendered as an SVG graphic, with bars drawn in steel blue. The code generates the data internally using a loop and `Math.random`. It uses D3.js v4 APIs including `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.axisBottom` and `d3.axisLeft` to create the axes. The visualization is built within a React starter template, though the core logic is a simple D3 script.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.