Point scale
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed