Upload tobacco control data
This example displays a textual summary of a tobacco control dataset, reporting its file size, row count, and column count after loading. The visualization uses D3 v5 to fetch the CSV from a GitHub gist via `d3.csv`, then calculates the file’s size with `d3.csvFormat` and displays the statistics inside a styled `<pre>` element. The data originates from the WHO Global Health Observatory repository and covers MPOWER tobacco control indicators for all countries from 2007 to 2018.
AI-generated descriptionMPOWER tobacco control data overview
This data is about tabacoo control overview for all countries reported by MPOWER.
M: monitor tobacco use and prevention policies;
P: protect people from tobacco smoke;
O: offer help to quit tobacco smoking;
W: warn about the dangers of tobacco;
E: enforce bans on tobacco advertising, promotion and sponsorship;
R: raise taxes on tobacco.
Original resource is WHO Global Health Observatory data repository, and I have uploaded it to a gist link on Github.
Variables of interest:
| Name | Type | Description |
|---|---|---|
| Country | categorical | Country name |
| Year | ordinal | Year |
| Monitor | ordinal | Tabacco control type |
| Protect from tobacco smoke | ordinal | Tabacco control type |
| Offer help to quit tobacco use | ordinal | Tabacco control type |
| Warn about the dangers of tobacco | ordinal | Tabacco control type |
| Enforce bans on tobacco advertising | ordinal | Tabacco control type |
| Raise taxes on tobacco | ordinal | Tabacco control type |
| Anti-tobacco mass media campaigns | ordinal | Tabacco control type |
For all ordinal variables (except 'Year'), a higher number means a stronger control of tobacco.
Possible questions:
- Overall trends for all countries (or areas) from 2007 to 2018, in each type of control.
- In 2018, which countries have stronger and which have weaker tabacco control, in each type of control?
- Which type of tobacco control that people would most likely to do? Which is the less likely to do?
*This is a part of week 2 assignment: Load Your Data