Skip to main content
Public

Share visualization

Loading preview…

Reusable Scatter Plot- Akhil

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

Reusable Scatter Plot- Akhil

0
AAkhil Charugulla
Last edited Mar 28, 2024
Created on Mar 27, 2024

This reusable scatter plot visualizes the relationship between math and science scores from a school dataset. The visualization uses D3 scales and axes to map scores to positions, with circles representing individual data points. Every two seconds, the plot cycles through different subject pairs, updating the x-axis to show English or history scores while keeping science on the y-axis. Built with D3’s `scaleLinear`, `axisBottom`, and `axisLeft` APIs, the SVG chart animates transitions between datasets using JavaScript’s `setInterval` to call the custom scatter plot function.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed