Summary

In this chapter, I explained the usage of the most important statistical functions (such as d3.min() and d3.max()), and we saw them applied in the last example. They are useful to resize the axes and the chart automatically, when values in the dataset are out of the current range of the axis.

We also discussed array manipulation functions, which help us to modify, structure, and preprocess the data for the visualization. In the first section, we also saw an example of d3.nest() that groups elements as an associative array by their keys in multihierarchical levels.

You learned how to format number values and convert them to strings with d3.format(). The specifier defines how the formatter parses the values and formats them in different data ...

Get Data Visualization with D3 and AngularJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.