Skip to main content
100%

Reusable Scatterplot

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

This scatter plot visualizes the relationship between units sold and sales revenue for mobile devices, with data points colored by brand. The implementation uses a reusable `scatterPlot` module built with D3 v6, employing `scaleLinear` and `scaleOrdinal` for axes and color encoding, alongside `axisLeft` and `axisBottom` for chart annotations. The visualization cycles between two halves of the dataset every five seconds, fetched from a CSV via `d3.csv`, and renders as an interactive SVG with a 12-pixel font for labels.

AI-generated description

The code presents a reusable scatter plot representation of sales data for mobile devices, showing how sales and units sold relate to one another. It offers a straightforward and interactive method for evaluating and contrasting sales results across various goods.

MIT Licensed

Similar vizzes