line chart ICE-7
✓ Published0🌍 Public
This example shows a reusable line chart tracking synthetic monthly household electricity usage in kWh over 24 months. Built with D3 v7, the chart uses `d3.scaleTime()` and `d3.scaleLinear()` for axes, `d3.line()` for the series path, and `d3.axisBottom()` and `d3.axisLeft()` for labeled axes with gridlines. The SVG rendering includes data points as circles, a hover tooltip, and an animated update capability through the `lineChart.update()` API, allowing redraws with new CSV data.
AI-generated descriptionMIT Licensed