Fork of Scales and Axes
✓ Published0🌍 Public
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!
MIT Licensed