Skip to main content
100%

scale

✓ Published0🌍 Public
SSmith5mr
Last edited Feb 18, 2016
Created on Feb 18, 2016

This example demonstrates how D3’s linear scale maps a continuous domain to a fixed pixel range, with an interactive slider adjusting the domain’s maximum value from 20 to 1,000. The visualization renders two SVG axes: a blue-tinted grid of minor ticks and a black major axis, both regenerated on slider input via `d3.svg.axis()` and a `redraw()` function. The code uses D3 v3, SVG rendering, and a range input element to drive the scale’s domain, while CSS styling differentiates gridline hierarchies and the axis appearance.

AI-generated description

Built with blockbuilder.org

Similar vizzes