Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

LGBTQI Country Laws CSV Data

Public visualization

Viewing a saved revision (read-only)

9210db2395e94f0ab11099d9765bf890

LGBTQI Country Laws CSV Data

0 stars0🌍 Public
PPeter Maida
Last edited Sep 23, 2020
Created on Sep 9, 2020

This example loads the LGBTQI Country Laws dataset from a GitHub gist and displays summary statistics about the CSV file in a large text block. It shows the file size in kilobytes, the number of data rows, and the number of columns. The code uses d3.csv to fetch and parse the remote CSV, then applies d3.csvFormat and array properties to compute these metrics. An alternative commented approach demonstrates the same task using the Fetch API, async/await, and d3.csvParse, highlighting different asynchronous patterns in D3 v5.

AI-generated description

A program that loads and parses some CSV data: LGBTQI Country Laws.