4 ms·
Does anyone know how to download the data for the charts in the study? https://www.bmj.com/content/387/bmj-2024-082194 https://www.bmj.com/content/387/bmj-2024
by IAmGraydon 2y ago
Does anyone know how to download the data for the charts in the study?
https://www.bmj.com/content/387/bmj-2024-082194 https://www.bmj.com/content/387/bmj-2024-082194
The last one (9/9) has a download link, but none of the others do.
- mkl 2y agoIt looks pretty easy to extract from the svg elements, as the aria-label attributes contain everything, e.g. "Urban and regional planners, Colour 2: Grey, Size: 1, Mean age at death, years: 76.82, Risk-adjusted % of Alzheimer's deaths: 1.92". The following seems to work (may need to be inspecting something in the plot iframe): a = []; document.querySelectorAll('path.data-point').forEach(e => { a.push(e.ariaLabel); }); console.log(a.join('\n'))