Skip to main content
100%

Ice 7 reusable scatterplot

✓ Published0🌍 Public
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
MIT Licensed

Similar vizzes