fresh block
✓ Published0🌍 Public
PPierreLrnt
Last edited Jun 16, 2017
Created on Jun 16, 2017
This example plots three countries as circles on a yellow SVG canvas, positioning each by health (y-axis) and wealth (x-axis). Circle size encodes population, while color reflects continent using a d3.scaleOrdinal mapping Europe and Asia to red and green. The visualization uses d3.scaleLinear for health, d3.scaleLog for wealth, and d3.scaleSqrt for population, applied to circles appended to the SVG. The data is from a hardcoded array containing country names, populations, health scores, wealth values, and continent assignments.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed