Skip to main content
100%

TRAVEL VS GDP D3.js Line Chart

✓ Published0🌍 Public
Rrallabandisushen@gmail.com
Last edited Apr 10, 2023
Created on Apr 10, 2023
Forked from D3.js Line Chart

This visualization presents a line chart displaying international tourism receipts, intended to show GDP-related travel trends across countries from 2012 to 2020. The chart renders a single series of data points as a path in an SVG, using d3.csv to load the dataset and d3.scaleBand and d3.scaleLinear for the axes. The line itself is generated with d3.line, with the Y axis scaled to the "customers" column, while the X axis labels years as categories. The code also demonstrates axis rendering via d3.axisBottom and d3.axisLeft, with styling handled through CSS.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes