🌍 Public
Viewing a saved revision (read-only)
41c92a4ea4b44692b4c03159afbc62b9
scatter plot health expenses
A scatter plot visualizes health expenditure by year across three gender categories (Total, Males, Females), with each data point colored via a d3.scaleOrdinal range. The chart uses d3.csvParse to load a CSV dataset, d3.scaleLinear for both axes, and custom d3.axisBottom and axisLeft components for labeled ticks. Circles are rendered with a fixed radius of 10 pixels, and axes labels indicate year and expenditure values. The visualization is fully responsive, sizing to the window dimensions, and updates dynamically through a state-based rendering pattern in d3.
AI-generated descriptionLoading a CSV file, Health Expenditure Dataset.