Skip to main content
100%

Fork of Responsive Axes

✓ Published0🌍 Public
Kkennethnwc
Last edited May 14, 2021
Created on May 14, 2021
Forked from Responsive Axes

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 description
MIT Licensed

Similar vizzes