Skip to main content
Public

Share visualization

Loading preview…

LoadCsv-v1

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

LoadCsv-v1

1
JJimMaltby
Last edited Jun 5, 2022
Created on Jun 5, 2022
Forked from LoadCsv

This example loads CSV data using `d3.csv`, processes each row to calculate a `duration` field, and filters out invalid entries where the end time precedes the start time. The processed data is then passed to a chart via `d3.select("#chart")` with a `.join()` operation that appends text elements. The code references the Iris Dataset as its source, though the actual CSV strings shown are placeholder example data. It demonstrates a reusable scatter plot pattern inspired by Mike Bostock’s "Towards Reusable Charts" and Observable’s selection-join technique.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed