Skip to main content
100%

ICE7

✓ Published0🌍 Public
MM Hema
Last edited Mar 27, 2024
Created on Mar 27, 2024

This example shows a reusable scatter plot that maps engine weight to horsepower for a small dataset of vehicles. The visualization uses D3.js v7 to render SVG circles and axes, with scales for the x and y dimensions. The code builds a configurable chart function that accepts setters for width, height, data, margins, and radius, demonstrating a modular pattern for reusable visualizations. The implementation relies on `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.extent` to handle the mapping and axis generation.

AI-generated description
MIT Licensed

Similar vizzes