Skip to main content
Public

Share visualization

Loading preview…

Fork of Scatter plot for Electronics sale

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Scatter plot for Electronics sale

0
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

Comments

Sign in to join the discussion.

MIT Licensed