Skip to main content
100%

LoadCsv-v1

✓ Published1🌍 Public
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.

MIT Licensed

Similar vizzes