scatter plot health expenses
✓ Published2🌍 Public
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.
MIT Licensed