Skip to main content
100%

Resuable D3 Scatter Plot

✓ Published0🌍 Public
UUzoemeka Okechukwu Innocent
Last edited Aug 22, 2023
Created on Aug 22, 2023
Forked from HTML Starter

This reusable scatter plot component renders a static 2D chart, plotting a set of points against numerical x and y axes using D3.js scales and SVG. The code defines a single point dataset and draws circles with a default radius and fill color, while displaying axis labels and tick marks via d3.axisBottom and d3.axisLeft. The chart is built as a configurable function, allowing users to pass custom data, margins, and dimensions for reuse. The accompanying HTML file is minimal, showing only a placeholder message, and does not include any interactive or animated behaviors.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes