Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Fork of Bar Chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Fork of Fork of Bar Chart

0
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