Skip to main content
100%

Fork of Simple Scatter Plot

✓ Published0🌍 Public
445.saiful@gmail.com
Last edited Mar 9, 2026
Created on Mar 9, 2026

This fork of the Simple Scatter Plot shows a dual-axis chart of Seattle weather data, displaying precipitation as blue bars and maximum temperature as a red line, with separate left and right Y-axis scales. It uses d3.csv to load the dataset, then d3.scaleTime and d3.scaleLinear to create the scales, with d3.axisLeft, d3.axisRight, and d3.axisBottom for the axes. The chart renders gridlines and includes interactive accessibility attributes, with the six-month slice of data displayed across the responsive width of its container.

AI-generated description

Dual-Axis Chart Visualization

A D3.js dual-axis chart displaying Seattle weather data with precipitation bars and maximum temperature line overlay.

Features

  • Dual Y-axis scales for different metrics (precipitation and temperature)
  • Bar chart for discrete values (precipitation)
  • Line chart for continuous values (temperature)
  • Responsive design
  • Gridlines for better readability
  • Legend showing both metrics
  • Reusable chart component

Data

Uses Seattle weather dataset with 180 samples (6 months) covering:

  • Date
  • Precipitation (mm)
  • Max Temperature (°C)
MIT Licensed

Similar vizzes