Bar Chart Example
✓ Published1🌍 Public
This example shows a bar chart comparing five categories using a static dataset, with each bar’s height encoding the category value. It renders as an SVG via D3 v6, using `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis. The bars are drawn as `rect` elements, and axes are generated with `d3.axisBottom` and `d3.axisLeft`. The chart is built inside a React-compatible structure but uses plain JavaScript in a single HTML page.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed