Skip to main content
100%

Fork of Scatter plot for Electronics sale

✓ Published0🌍 Public
Ppriyapravallika44@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025

A reusable scatter plot displays monthly electronics sales data across six months, with each month's sales shown as a teal circle positioned by month on the x-axis and sales value on the y-axis. The chart uses D3 v6’s `scaleBand` and `scaleLinear` for axes, with `d3.axisBottom` and `d3.axisLeft` for tick labels, and `join` to bind circles to the data. The x- and y-axis labels are added via appended text elements, while the chart’s dimensions, margins, and data mapping are configurable through a builder-style API. The implementation renders to SVG and is a fork of an existing scatter plot template, with the data hardcoded in the script.

AI-generated description
MIT Licensed

Similar vizzes