Skip to main content
100%

Data Table Summary

✓ Published0🌍 Public
MMihir Sawant
Last edited Nov 7, 2018
Created on Sep 7, 2018
Forked from Data Table Summary

This example displays a concise text summary of a Pokémon dataset from the first three generations, showing row count, column count, and file size, followed by the first ten rows in JSON format. Built with d3.v5, it uses `select` to target the body, `csv` to asynchronously load the dataset from a URL, `csvFormat` to compute the data size, and `JSON.stringify` to pretty-print the sample rows against a black terminal-style background.

AI-generated description

This program prints a summary of a data table.

This data is about the stats (from the popular video games) of Pokemon from the first 3 generations (first 386 pokemon).

This data comes from Pokeapi.

I called the API for the statistics of the first three generations of Pokemon (since I've only played those games). I cleaned the JSON file received to retain some basic statistics, like the attack stat, defence, etc., of the Pokemon and converted the data into CSV.

The data is a "file" here, but the recommended approach is to upload the data seprately, as in the video below.

MIT Licensed

Similar vizzes