Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

svg fund

Public visualization

svg fund

0 stars0🌍 Public
Jjaredaitken6
Last edited Nov 26, 2023
Created on Nov 25, 2023
Forked from HTML Starter

This example demonstrates how a D3 linear scale maps an input value to an output range, using a simple numeric conversion from 0–100 to 0–500. The visualization outputs the mapped value for an input of 50, displaying 250 directly on the page. The code defines the scale with `d3.scaleLinear()`, setting its domain and range, then calls the scale function to compute the result. It relies on D3 v7 loaded from a CDN and renders the numeric output through `document.write` in the browser.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed