Temperature Vs Energy Consumption
✓ Published0🌍 Public
This example visualizes average weekly energy consumption over time using a line chart rendered with D3. The data is processed by grouping daily timestamps into weeks via `d3.rollup` and calculating the mean consumption for each week. The chart uses `d3.scaleTime` and `d3.scaleLinear` to map the date and consumption values, with axes generated by `d3.axisBottom` and `d3.axisLeft`. A line path is drawn using a `d3.line` generator, and the visualization is embedded in a responsive SVG container that adapts to its parent dimensions.
AI-generated descriptionA simple scatter plot with D3 showing the Penguins Dataset.
Challenge
- Fork this viz
- Modify it to show your data
MIT Licensed