Skip to main content
Public

Share visualization

Loading preview…

Ice 7 reusable scatterplot

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

Ice 7 reusable scatterplot

0
UUday Kiran
Last edited Apr 1, 2025
Created on Apr 1, 2025

This reusable D3.js module renders a scatter plot comparing open and close prices from a trading dataset, with each point using blue circles. The chart is created using `d3.scaleLinear` for both axes, with `d3.extent` determining the domain and `d3.axisBottom` and `d3.axisLeft` providing labeled axes. The code exports a configurable `scatterPlot` function that accepts `.x()`, `.y()`, `.width()`, and `.height()` setters, allowing the chart to be re-bound to different data columns. Styling uses a 24px "Share Tech" font.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed