🌍 Public
Viewing a saved revision (read-only)
ae5c5a43907849b786b6c9b88d68719f
Claude 3.7 Test
This stacked bar chart displays four groups with five categorical segments each, using a harmonious color palette with white strokes between segments. The visualization includes grid lines behind the bars, axes with labels, a legend, and a title. Built with D3.js v7, the code uses d3.stack(), d3.scaleBand(), and d3.scaleLinear() to generate the chart, with data hardcoded in the script and rendered as SVG that fills the browser window.
AI-generated descriptionD3 SVG Example
This is a simple example that demonstrates how to create an SVG graphic with various shapes using D3.js. The graphic includes:
- Circles
- Rectangles
- A polygon
- An ellipse
- Text
The SVG is set to fill the entire page, and each shape has a different color with a black stroke.
Running the Example
- Install dependencies:
npm install - Build the project:
npm run build - Open index.html in your browser