Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

resuable scatter plot

Public visualization

Viewing a saved revision (read-only)

b4a78639acbf4c86825227f618bb9548

resuable scatter plot

0 stars0🌍 Public
Pprashanth yamala
Last edited Jul 1, 2022
Created on Jul 1, 2022

This interactive scatter plot visualizes supermarket sales data, plotting Quantity on the x-axis and Price on the y-axis, with points colored by product list category. It demonstrates a reusable chart pattern, using d3.csv to load the dataset and d3.scaleLinear, d3.extent, d3.axisLeft, and d3.axisBottom to render axes. An animated loop using setInterval toggles the x-value mapping between Quantity and Price every two seconds, redrawing the chart with smooth SVG transitions. The code follows the “Towards Reusable Charts” methodology, exposing configuration methods like .width, .height, .data, and .radius for flexible customization.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.