In this chapter, you had a practical introduction to the essential skills needed to create data visualizations with D3.js. This is a little bit of most of what will be explored in greater detail in Chapters 4, Data Binding, through Chapter 8, Animation and Interactivity. All examples used the fundamental data-binding mechanism that D3 uses to create data-driven documents, exploring the most common features you will use in most applications.
We created a simple bar chart made of HTML elements, an equivalent bar chart using SVG elements, and a map binding standard geographical data to SVG polygons. We also provided a brief introduction to interactive charts by adding event handling and transitions to the SVG bar chart.
The main goal of this chapter was to make you familiar with the API. Starting in the next chapter, we will revisit the data-binding process and explore it...