Skip to main content
100%

Point scale

✓ Published0🌍 Public
AAlark Joshi
Last edited Oct 11, 2022
Created on Oct 11, 2022
Forked from HTML Starter

A small set of orange circles demonstrates D3's `d3.scalePoint()`, which maps categorical weekday names to x-coordinates. Each circle is placed along a horizontal line based on its associated day, with a fixed radius of 4 pixels, while the y-position is constant. The data, a simple array of weekday/value pairs, is bound to circles using `selectAll().data().enter().append()`. The visualization uses static SVG rendering within an HTML page, with all styling defined in CSS and the scale’s range set to 200 pixels.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes