Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing Kent UK police stop and search CSV Data

Public visualization

Viewing a saved revision (read-only)

9be7a4a6f4844a7da793576a4a718a20

Loading and Parsing Kent UK police stop and search CSV Data

0 stars2🌍 Public
BBizmundo
Last edited Sep 6, 2019
Created on Sep 6, 2019

This example loads a CSV file containing Kent UK police stop and search records and displays a summary of the dataset’s size and structure. It reports the total file size in kilobytes, the number of data rows, and the number of columns. The code uses D3 v5’s `d3.csv` method to fetch and parse the data, and `d3.csvFormat` to calculate the formatted size, with results written to the page via `textContent`. An alternative approach using `fetch`, `async`/`await`, and `d3.csvParse` is included in comments.

AI-generated description

A program that loads and parses Kent UK police stop and search CSV data. The data table items attributes are: Type Date Part of a policing operation Policing operation Latitude Longitude Gender Age range Self-defined ethnicity Officer-defined ethnicity Legislation Object of search Outcome Outcome linked to object of search Removal of more than just outer clothing.