Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE7_Reusable_Scatter_CropYield_Manisha

Public visualization

Viewing a saved revision (read-only)

95c9a889696045cca64a575e69b24942

ICE7_Reusable_Scatter_CropYield_Manisha

0 stars0🌍 Public
Kkonudulamanisha@gmail.com
Last edited Oct 28, 2025
Created on Oct 28, 2025

This interactive scatter plot, built with D3.js (v7), visualizes crop yield in tons per hectare across different countries. Each blue circle represents a single country, positioned along the y-axis and plotted horizontally based on its yield value, with countries sorted in descending order. The chart is created using a reusable `reusableScatter` function that employs D3's `scaleLinear` and `scalePoint` for axes and a `join` pattern for efficient SVG element management. The data is loaded from a remote CSV file using `d3.csv` with `d3.autoType` and then processed and rendered into the visualization.

AI-generated description