In this chapter, we’ll learn about the example-based approach of learning and sharing D3.js code. We will review the canonical example that renders a bar chart. The code will serve as an illustration of what it is to work using a D3.js example as a jumpstart for your charts. We will learn about some of the standard code practices in the D3.js world and how they changed in the last versions.
Finally, we will analyze the example code critically, pointing out the drawbacks of its style and structure. We will see how it falls short when applying it to a professional software development context. ...