Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Bar Chart

Public visualization

Fork of Fork of Fork of Bar Chart

0 stars0🌍 Public
Rrobertotienonyaranga@gmail.com
Last edited Mar 20, 2024
Created on Mar 20, 2024

This example pairs a bar chart with a scatter plot to explore the relationship between rainfall and crop yield. The bar chart groups average yield by rainfall category, while the scatter plot plots raw rainfall against yield. Both visualizations use D3.js v6, with `d3.rollups` for aggregation, `d3.scaleBand` and `d3.scaleLinear` for axes, and SVG rendering. The code loads a CSV dataset and applies a custom categorization function to bin rainfall values.

AI-generated description

States with Stamen employees as of January 2022

Comments

Sign in to join the discussion.

MIT Licensed