Skip to main content
Public

Share visualization

Loading preview…

ICE-7 Common Visualization Idioms

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

ICE-7 Common Visualization Idioms

3
Bbadrinath888@gmail.com
Last edited Oct 23, 2025
Created on Oct 23, 2025

This example demonstrates a reusable scatter plot comparing CO₂ emissions against GDP for six countries. The visualization positions circles along a linear scale for each variable, with axes, labels, and a title generated dynamically. It uses d3.csv to load the data from a CSV file, d3.scaleLinear for coordinate mapping, d3.extent to determine domains, and d3.axisBottom and d3.axisLeft for the axes. The plot is rendered as an SVG with circles styled in steelblue with partial opacity, and the code encapsulates the plotting logic into the `scatterPlot` function, allowing it to be reused with different data variables.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed