🌍 Public
Fork of Fork of Fork of Bar Chart
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 descriptionStates with Stamen employees as of January 2022
MIT Licensed
Comments
Sign in to join the discussion.