Export Image
Export Code

ICE 7 Reusable scatter plot

HarshithaDontha26

0 views in last 90 days
Last edited Oct 27, 2025
Created on Oct 27, 2025

Reusable Scatter Plot

This project demonstrates a reusable scatter plot component built with D3.js that visualizes the relationship between study hours and exam scores.

Usage

  1. Create a CSV file named scatter_data.csv with the provided data
  2. Import the scatterPlot function from scatterPlot.js
  3. Configure the chart with your data and settings
  4. Call it on a D3 selection

Features

  • Reusable chart component
  • Automatic scaling of axes
  • Configurable dimensions, margins, and labels
  • Clean visualization of data points
MIT Licensed