Kankerscatter
A responsive scatterplot visualizes cancer prevalence (x-axis) and survival rates (y-axis) for 19 cancer types, with each type represented as two connected points (male and female). Users toggle between a full view of all cancers and a zoomed-in view focusing on rarer types. The visualization uses a D3.js SVG pipeline, with `d3.scale.linear` axes, `d3.svg.axis` for ticks, and `d3.tip` for interactive tooltips. Data comes from a local CSV (`cancerdata.csv`) and animations are handled through D3’s enter/exit transitions. The layout is generated from an SVG block with buttons controlling the zoom state.
AI-generated descriptionA responsive scatterplot, showing prevalence and survival rates of different types of cancer for both sexes. Use the buttons to zoom in on the rare types of cancer.
More explication here, live here (Dutch).
forked from <a href='http://bl.ocks.org/maartenzam/'>maartenzam</a>'s block: <a href='http://bl.ocks.org/maartenzam/af5c4590b47a22a15a06cc81b026a753'>Cancer scatterplot</a>