Skip to main content
100%

marcIconog

✓ Published0🌍 Public
Hhanulik.ondrej@gmail.com
Last edited Aug 27, 2024
Created on Aug 27, 2024
Forked from Edible insect

This example visualizes the environmental impact of different food types—cattle, pork, poultry, and mealworms—comparing land use, feed, water, and warming through a series of small marker blocks. The code uses d3.select and d3.scaleLinear to position elements, while a grid of thin rectangles represents data points. Using d3.v4 and d3.v6 loaded via script tags, the SVG rendering draws a black background with green land indicators, though the loop that creates the markers contains a conditional assignment bug, leaving the visualization incomplete. The data.csv file supplies the comparative values.

AI-generated description
MIT Licensed

Similar vizzes