Skip to main content
100%

Balaji ICE-7 Scatter Plot

✓ Published0🌍 Public
Ppeddubalaji@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024

This animated scatter plot cycles through different x-axis attributes—Expenses, Revenue, and EmployeeCount—from a revenue CSV dataset, plotting them against Profit. Built with D3.js, it uses a reusable `scatterPlot` function with a fluent interface to configure scales, axes, and point radius. The visualization updates every two seconds via `setInterval`, re-rendering the SVG elements and axes as the data mapping changes. The code leverages D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to generate the plot.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes