Skip to main content
100%

Suicide Rates Data from Kaggle

✓ Published0🌍 Public
CChen Ding
Last edited Sep 25, 2019
Created on Sep 5, 2019

This example demonstrates a minimal text-based summary of the Suicide Rates Overview dataset from Kaggle. It displays the file size in kilobytes, row count, and column count using a large HTML `<pre>` element. The code loads CSV data via `d3.csv` from a GitHub Gist URL and formats the metrics with `Math.round` and string concatenation. It uses D3 v5.11.0 and includes commented-out alternatives using `fetch`, `async/await`, and `d3.csvParse`.

AI-generated description

A program that loads and parses some CSV data.

This is a Suicide dataset contains info:

Attributes:

country: categorical year: quantitative sex: categorical age: ordinal suicides_no: categorical population: ordinal suicides/100k pop: quantitative country-year: categorical HDI for year gdp_for_year ($): quantitative gdp_per_capita ($): quantitative generation: categorical Questions:

Which countries has the highest suicide rates? What is the difference of suicide rates between different genders, ages and countries? Does economy have some impacts on suicide rates?

Source: Suicide Rates Overview.

MIT Licensed

Similar vizzes