Skip to main content
100%

Smoking Status vs Age

✓ Published0🌍 Public
RRidhima Saxena
Last edited Dec 9, 2021
Created on Dec 8, 2021

This bar chart shows the relationship between age and smoking status (0 for non-smoker, 1 for smoker) across individuals in the CDC dataset, with bars colored by gender. The visualization uses a linear x-scale for age and a band scale for smoking status, rendering SVG rectangles via React components. It employs D3 v5 scales (scaleLinear, scaleBand, scaleOrdinal) and custom axis components (AxisBottom, AxisLeft) alongside a color legend, with data loaded through d3.csv.

AI-generated description

A bar chart visualization of the cdc dataset outlining smoking status (0 for non-smoker and 1 for smoker) for every age in the dataset (https://gist.github.com/ridhimasaxena/a45f4774ff99a80bb5f71ca575f64ec3).

MIT Licensed

Similar vizzes