Skip to main content
100%

fresh block

✓ Published0🌍 Public
TTylerVaughan
Last edited Feb 27, 2018
Created on Feb 27, 2018

This example presents two JavaScript practice problems embedded in an HTML page. It shows how to compute the average population of a small array of U.S. states, first using the d3.mean() method and then manually using d3.sum() divided by the array length. The page prints results to the browser’s developer console rather than rendering any visual elements. The code relies on d3.v4 and defines state objects with name, id, and population data inline.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes