Skip to main content
Public

Share visualization

Loading preview…

Health expenditure Line chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Health expenditure Line chart

0
KKhatera Alizada
Last edited Feb 27, 2023
Created on Feb 26, 2023
Forked from Keeling Curve

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 description

Health expenditure const malesExpenditure = data.filter( (d) => d.Gender === 'Males' && d.AgeGroup === '0-18' && d.Service === 'Prescription Drugs' && d.Payer === 'Total'

    );

Comments

Sign in to join the discussion.

MIT Licensed