Skip to main content
100%

combined(bar + line)Assignment 6

✓ Published2🌍 Public
Ssaisowjanyaedupuganti.24f@gmail.com
Last edited Oct 19, 2025
Created on Oct 19, 2025

This visualization combines a bar chart and a line chart to show monthly climate trends for rainfall (in millimeters) and average temperature (in Celsius), using a dual-axis layout with the bars scaled to the left axis and the line to the right. The SVG rendering is built with D3 v7, leveraging `d3.scaleBand`, `d3.scaleLinear`, and the `d3.axis` utilities to construct the axes, while the line is drawn via `d3.line` appended as a path. Data is fetched from a remote CSV URL and aggregated by `Month_Index` using `d3.rollups` with mean calculations for both metrics. A legend, axis labels, and an annotation for the peak rainfall month complete the chart.

AI-generated description
MIT Licensed

Similar vizzes