Practice d3-array search
✓ Published0🌍 Public
CCJKraenzle
Last edited Nov 18, 2017
Created on Nov 18, 2017
This example demonstrates how to search and sort an array of U.S. state GDP data using D3 v4 array methods. It uses d3.scan to find the index of the state with the smallest GDP, displaying the state name and its index. The visualization then shows two text-based lists of the first ten states sorted alphabetically in ascending and descending order using d3.ascending and d3.descending. The SVG output provides a straightforward comparison of sorted results, highlighting the utility of D3's array utilities for data ordering and search operations.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed