Health expenditure Line chart
✓ Published0🌍 Public
This line chart displays total prescription drug expenditures for males aged 0-18 across Canada from 2002 to 2014, broken down by gender categories. The data.csv file contains expenditure values by year and gender, which are parsed with d3.csvParse and timeParse before being rendered. The visualization uses d3.line with curveBasis to create smooth lines, d3.scaleTime and d3.scaleLinear for axes, and d3.scaleOrdinal with schemeCategory10 for color encoding, with custom axis and color legend modules.
AI-generated descriptionHealth expenditure const malesExpenditure = data.filter( (d) => d.Gender === 'Males' && d.AgeGroup === '0-18' && d.Service === 'Prescription Drugs' && d.Payer === 'Total'
);
MIT Licensed