Skip to main content
100%

Scatter plot of tobacco control data with menu

✓ Published0🌍 Public
MMing Liu
Last edited Oct 7, 2021
Created on Oct 5, 2021

This scatter plot shows tobacco control power indicators for Canada, the United States, and Mexico from 2007 to 2018, based on WHO MPOWER data. A menu lets users switch between five control measures, and the y-axis and points update with a smooth transition. The visualization uses d3.scaleLinear, d3.axisBottom, and d3.axisLeft for scales and axes, with d3.transition for animations. Points are colored by country and rendered as SVG circles with a legend.

AI-generated description

A scatter plot of tobacco control data with menu.

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

Three countries: <span style="color:red">Canada</span>, <span style="color:blue">United States of America</span> and <span style="color:green">Mexico</span>.

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 power indicator of tobacco control that you choose. A higher number means a more powerful control on tobacco.

You can choose what type of tobacco control you want to check through the menu bar on the top of the plot.

*This is a part of week 6 assignmnet: Add Interaction

MIT Licensed

Similar vizzes