Book description
Go beyond the basics of D3.js to create maintainable, modular, and testable charts and to package them into a library that can be distributed as open source software or kept for private use. This book will show you how to transform regular D3.js chart code into reusable and extendable modules.
You know the basics of working with D3.js, but it's time to become a professional D3.js practitioner. This book is your launching pad to refactoring code, composing complex visualizations from small components, working as a team with other developers, and integrating charts with a Continuous Integration system. You'll begin by creating a production-ready chart using D3.js v5, ES2015, and a test-driven approach and then move on to using and extending Britecharts, the reusable charting library based on Reusable API patterns. Finally, you'll see how to use D3.js along with React to document and build your charts to compose a charting library you can release into the NPM repository.With Pro D3.js, you'll become an accomplished D3.js developer in no time.
What You Will Learn
- Create v5 D3.js charts with ES2016 and unit tests
- Develop modular, testable and extensible code with the Reusable API pattern
- Work with and extend Britecharts, a reusable charting library created at Eventbrite
- Use Webpack and npm to create and publish a charting library from your own chart collections
- Write reference documentation and build a documentation homepage for your library.
Who This Book Is For
Data scientists, data visualization engineers, and frontend developers with a fundamental knowledge of D3.js and some experience with JavaScript, as well as data journalists and consultants.
Table of contents
- Cover
- Front Matter
- 1. Introduction to Data Visualizations with D3.js
- 2. An Archetypal D3.js Chart
- 3. D3.js Code Encapsulation and APIs
- 4. The Reusable API
- 5. Making the Bar Chart Production-Ready
- 6. Britecharts
- 7. Using and Customizing Britecharts
- 8. Extending a Chart
- 9. Testing Your Charts
- 10. Building Your Library
- 11. Creating Documentation
- 12. Using Your Library with React
- Back Matter
Product information
- Title: Pro D3.js: Use D3.js to Create Maintainable, Modular, and Testable Charts
- Author(s):
- Release date: October 2019
- Publisher(s): Apress
- ISBN: 9781484252031
You might also like
video
Interactive Visualization with D3.js
Tackle the steep learning curve of D3.js by going hands-on to build your own amazing interactive …
book
D3.js: Cutting-edge Data Visualization
Turn your raw data into real knowledge by creating and deploying complex data visualizations with D3.js …
book
D3.js Quick Start Guide
This book will help you build interactive graphs that are viewable in any web browser using …
book
D3.js 4.x Data Visualization - Third Edition
Create and publish your own interactive and compelling data visualizations with D3.js 4.x About This Book …