Master the art of building responsive visualizations on the Web
About This Book
Learn the techniques for building data visualizations that work well for all screen sizes
Implement responsive techniques with popular libraries to get to grips with building responsive visualizations that work in the real world
Incorporate responsive workflow in your data visualization process to build visualizations that take a mobile-first approach.
Who This Book Is For
Web developers and data science professionals who want to make their visualizations work for smaller screen sizes. Some basic knowledge of JavaScript and Data visualization is expected.
What You Will Learn
Get familiar with responsive design for data visualizations
Understand the main concepts of D3.js to create interactive visualizations
Unleash the power of Bootstrap to create stunning and responsive visualizations for all screen resolutions
Implement Touch and Mouse interactions for mobile-first applications
Design Transitions and Animations that impress in portrait and landscape
Build a Responsive World Map using GeoJSON and D3.js
In Detail
Using D3.js and Responsive Design principles, you will not just be able to implement visualizations that look and feel awesome across all devices and screen resolutions, but you will also boost your productivity and reduce development time by making use of Bootstrap—the most popular framework for developing responsive web applications.
This book teaches the basics of scalable vector graphics (SVG), D3.js, and Bootstrap while focusing on Responsive Design as well as mobile-first visualizations; the reader will start by discovering Bootstrap and how it can be used for creating responsive applications, and then implement a basic bar chart in D3.js. You will learn about loading, parsing, and filtering data in JavaScript and then dive into creating a responsive visualization by using Media Queries, responsive interactions for Mobile and Desktop devices, and transitions to bring the visualization to life. In the following chapters, we build a fully responsive interactive map to display geographic data using GeoJSON and set up integration testing with Protractor to test the application across real devices using a mobile API gateway such as AWS Device Farm.
You will finish the journey by discovering the caveats of mobile-first applications and learn how to master cross-browser complications.
Style and approach
As the world shifts to mobile devices for consuming data on the Web, developers are faced with the unique challenge of making data visualizations work for their smaller screens. The growth of responsive web design enabled developers to adopt page layouts and media for smaller screens, but there is still little information available on how to adapt data visualizations for the smaller screens. This book fills this important gap and shows how responsive web design principles can be extended to create visualizations that work well regardless of the screen size, thereby allowing developers to build user-friendly visualizations that work well on all devices. In addition to covering some of the popular techniques and design patterns for building responsive visualizations, the book also shows readers how to implement these techniques with the help of some popular tools and libraries.