Suicide Rates Data from Kaggle
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 descriptionA 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.