Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of ICE-7 : Reusable Scatter Plot

Public visualization

Viewing a saved revision (read-only)

6afb2c4789e2446f84f8d8760f763daa

Fork of Fork of ICE-7 : Reusable Scatter Plot

0 stars0🌍 Public
MM Hema
Last edited Mar 28, 2024
Created on Mar 28, 2024

This example visualizes COVID-19 data by plotting countries against death counts using a reusable scatter plot. It employs D3 v6 to load CSV data, scale axes with `scaleLinear`, and render marks via `symbol` and `symbols` for varied point shapes. The chart’s axes are generated with `axisLeft` and `axisBottom`, while margins and dimensions are configured through a custom `scatterPlot` function. The visualization is built with SVG, and the `d3.csv` module fetches the dataset from a remote URL. The code demonstrates a modular pattern where the plot function accepts configurable accessors for x, y, and symbol values, making it reusable.

AI-generated description