Skip to main content
100%

Scatter plot of tobacco control data

✓ Published2🌍 Public
MMing Liu
Last edited Oct 5, 2021
Created on Sep 14, 2021

This scatter plot displays tobacco control scores for Canada, the United States, and Mexico from 2007 to 2018, based on WHO Global Health Observatory data. The y-axis represents the strength of warning labels about tobacco dangers, ranging from 1 (not reported) to 5 (comprehensive pictorial warnings). The visualization highlights an upward trend, with all three countries improving their warning policies over time. The code uses d3.csv to load the data, d3.scaleLinear for both axes, and d3.axisLeft and d3.axisBottom for the chart's ticks. Circles are rendered in SVG with a radius of 10 pixels, colored by country (red, blue, green) and drawn with 50% opacity.

AI-generated description

A scatter plot of tobacco control data.

This scatter plot is to show that tobacoo control overview for three countries reported by MPOWER from 2007 to 2018.

Original data resource is WHO Global Health Observatory data repository, and I have uploaded it to a gist link on Github.

X axis is year, from 2007 to 2018.

Y axis is score of tobacco control by warning about the dangers of tobacco. The higher score means more powerful action of warning dangers of tobacco.

  • 1 = Data not reported
  • 2 = No warning or warning covering <30% of pack surface
  • 3 = ≥30%* but no pictures or pictograms and/or other appropriate characteristics
  • 4 = 31%–49% including pictures or pictograms and other appropriate characteristics**
  • 5 = ≥50%* including pictures or pictograms and appropriate characteristics.

Here I selected three countries: <span style="color:red">Canada</span>, <span style="color:blue">United States of America</span> and <span style="color:green">Mexico</span>. Here is a trend that all 3 countries improve the power of warning about the dangers of tobacco to reach a better tobacco control since 2007.

*This is a part of week 3 assignmnet: Visualize your Data

MIT Licensed

Similar vizzes