d3.max() returns the largest value in an iterable. Pass the dataset first, then an accessor function that identifies the numeric property to compare. section 3.2.3
Use d3.max() while exploring data before building a chart:
- Call d3.max(data, d => d.count) to compare each object's count value. section 3.2.3
- Log the result to estimate the scale and bar lengths needed for a visualization. section 3.2.3
- Use d3.min() for the smallest value or d3.extent() for both bounds. section 3.2.3
Measure technology counts
After loading the CSV and converting count to a number, run d3.max(data, d => d.count). For the 33-item technology dataset, the result is 1078; d3.min(data, d => d.count) returns 20.
