Skip to main content
100%

Fork of Fork of Line Chart Group-4

✓ Published0🌍 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
MIT Licensed

Similar vizzes