🌍 Public
Viewing a saved revision (read-only)
a59333da7bf945c9b0b98bc5e269456f
Fork of Scales and Axes
This example demonstrates how to construct a basic scatter plot framework using D3 scales and axes, with a gray inner rectangle delineating the plotting area. Linear scales map the domain from 0 to 100 to pixel coordinates, while `axisBottom` and `axisLeft` render tick marks and labels along the bottom and left edges. The visualization uses `scaleLinear` and the axis generators from D3 v7, with an SVG container sized to its parent element. The inner rectangle's fill color and margins are configurable through the `viz` function parameters, showing how to set up reusable chart scaffolding without plotted data.
AI-generated descriptionPreparing for visualization with D3 scales and axes!