Obesity Among Adults
✓ Published0🌍 Public
This example demonstrates how to load and inspect a dataset on adult obesity rates by country, displaying basic statistics about the data file. The visualization presents three key metrics: the file size in kilobytes, the number of rows, and the number of columns. Using D3.js version 5.11, the code loads a TSV file from a remote URL via `d3.tsv`, formats the data with `d3.tsvFormat`, and calculates the byte length of the formatted string. The resulting information appears in a large `<pre>` element. The dataset originates from Kaggle, covering obesity rates from 1975 to 2016.
AI-generated descriptionThe dataset contains the information of obesity rate among adults by country.
The original dataset: obesity by country
MIT Licensed