Area Plot displaying Stroke Prediction based on age
This area plot shows stroke prediction risk by age, with color encoding for gender (Female, Male, Other) and point size reflecting BMI. The visualization reveals that women are more prone to stroke than men, and that smoking status (smokes, formerly smoked, never smoked, or unknown) is linked to higher stroke incidence. Built with the Vega-Lite API and D3.js, it renders an SVG chart that reads data from a CSV file hosted on GitHub gist. The chart uses tooltips to display patient smoking status and customizes axis styling through a configuration object.
AI-generated descriptionHealthcare Stroke Data:
Dataset Source: Healthcare Stroke Data This is an Area plot with vega-lite-api. This visualization plot describes the correlation between age and stroke occurance. As known, 0 implies "No Stroke" and 1 implies "Stroke". The various color distinctions are Female , Male and Other. The tooltip in the plot describes the smoking status of the patient to be "smokes" , "formerly smoked", "never smoked" and "Unknown".
Analysis Results: The results tells us that, women are more prone to stroke than men. People who smoke or formerly smoked are more prone to getting stroke.
Note: The template was forked from Vega-Lite-API Template