CE-7 Q3
✓ Published1🌍 Public
This example shows the annual average temperature trend in India from 2000 to 2017 using an SVG line chart. The chart plots temperature values (ranging from roughly 29.6°C to 31.6°C) against years, with a steelblue line and labeled axes for "Year" and "Temperature (°C)". The code uses D3 v7's `d3.select`, `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.line` APIs to generate the axes and line path. The data is embedded directly as an array in the script, with the chart rendered in an SVG container sized 800 by 400 pixels.
AI-generated descriptionMIT Licensed