Bar Chart
✓ Published0🌍 Public
This example shows a bar chart with five rectangular bars of varying heights, rendered as black shapes against a white background. It presents categorical data where each bar’s height encodes a value, with the chart drawn directly in SVG using hard-coded `rect` elements. The visualization is built with React and relies on plain SVG markup, not a data-binding library like D3, as all dimensions and positions are explicitly defined within the JSX structure. The bars sit on a baseline, and the black-on-white contrast emphasizes the length differences across categories.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed