© Marcos Iglesias 2019
M. IglesiasPro D3.jshttps://doi.org/10.1007/978-1-4842-5203-1_10

10. Building Your Library

Marcos Iglesias1 
(1)
San Francisco, CA, USA
 

In previous chapters, we saw how to create modular, composable, and testable charts using the Reusable API. We demonstrated how that works out for Britecharts and how we can combine its components to create complex data visualizations. We also saw how to test our D3.js charts, creating professional components.

Assuming we followed these steps and have a set of chart components, we face the need for packaging them to distribute our chart library. We want to do it:
  • In a performant way (bundled and minified)

  • Enabling debugging and providing a great developer experience (source maps, live reload)

Get Pro D3.js: Use D3.js to Create Maintainable, Modular, and Testable Charts 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.