Skip to main content
100%

line chart ICE-7

✓ Published0🌍 Public
Vvydeeshm@gmail.com
Last edited Oct 25, 2025
Created on Oct 25, 2025
Forked from pie chart ICE-7

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 description
MIT Licensed

Similar vizzes