Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Line Chart Group-4

Public visualization

Viewing a saved revision (read-only)

f78a5951082b422b8d8095075fbf6840

Fork of Fork of Line Chart Group-4

0 stars0🌍 Public
Ppvreswar7@gmail.com
Last edited Apr 7, 2023
Created on Apr 7, 2023

This example displays a line chart of inflation rates across countries, with country names on the x-axis and inflation values on the y-axis. The chart uses d3.scaleTime despite the categorical x-axis labels, d3.scaleLinear for the y-axis, and d3.line to generate a red path connecting data points. Axis labels and a title are added via SVG text elements. Data is loaded asynchronously from a remote CSV using d3.csv, with inflation values coerced to numbers and dates parsed before rendering.

AI-generated description