TRAVEL VS GDP D3.js Line Chart
✓ Published0🌍 Public
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 descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed