Skip to main content
Public

Share visualization

Loading preview…

Fork of ICE-6: Rendering Marks and Channels with React & D3

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

Fork of ICE-6: Rendering Marks and Channels with React & D3

0
Ppethavenu
Last edited Mar 4, 2023
Created on Mar 4, 2023

This example shows earthquake data as a scatter plot with longitude on the x-axis and latitude on the y-axis, using blue circles to mark each seismic event. The code loads a CSV file via `d3.csv`, computes the data domain with `d3.min` and `d3.max`, and maps coordinates using `d3.scaleLinear`. The SVG is appended directly to the body, with axes and point positions created through D3 selections and SVG circle elements. The visualization runs within a React shell, although the rendering itself relies entirely on D3’s imperative API.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed