Fork of Responsive Axes
✓ Published0🌍 Public
This example demonstrates a responsive SVG chart with labeled X and Y axes, updating its layout whenever the browser window is resized. The visualization uses a static, uniform linear scale from 0 to 1 on both axes, with a rounded rectangle filling the plot area. The code relies on D3.js v5 (d3.scaleLinear, d3.axisBottom, d3.axisLeft) and a custom marginConvention helper to recompute dimensions. A theme module defines styling properties for tick marks, labels, and font sizes.
AI-generated descriptionMIT Licensed