Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Knowledge of users internet safety

Public visualization

Knowledge of users internet safety

0 stars1🌍 Public
NNicholas Smith
Last edited Sep 17, 2019
Created on Sep 2, 2019

This example displays the file size, row count, and column count of a CSV dataset on internet users’ knowledge of cybersecurity, loading the data with `d3.csv` and formatting the summary into a large-text `pre` element. It uses D3 v5’s `d3.csvFormat` to compute the data’s size in kilobytes, then updates the page’s text content directly. The dataset is sourced from a GitHub gist, and the code also includes commented-out alternatives using `fetch`, `async/await`, and `d3.csvParse` to demonstrate different parsing methods.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed