Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML Starter

Public visualization

HTML Starter

0 stars0🌍 Public
Jjeronimoek
Last edited Aug 10, 2020
Created on Aug 10, 2020
Forked from HTML Starter

This example demonstrates a color gradient mapped onto a series of rectangles using a logarithmic scale. It uses D3.js to create an SVG visualization, with `d3.scaleLog` and `d3.scaleLinear` defining the value-to-position mapping, while a custom log-based color scale assigns a range of three colors across the domain. The visualization also includes a bottom axis with `d3.axisBottom` and tick formatting, all rendered within an HTML page.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed