Limit search to available items
Book Cover
E-book
Author Zhu, Nick

Title Data Visualization with D3 4.x Cookbook - Second Edition
Edition 2nd ed
Published Birmingham : Packt Publishing, 2017

Copies

Description 1 online resource (370 pages)
Contents Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Getting Started with D3.js; Introduction; Setting up a simple D3 development environment; Getting ready; How to do it ... ; How it works ... ; There's more ... ; How to get source code; Setting up an NPM-based development environment; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Setting up a local HTTP server; Python Simple HTTP server; Node.js HTTP server; Understanding D3-style JavaScript; Getting ready; How to do it ... ; How it works ..
Functions are objectsStatic variable scoping; Getter-setter function; Function chaining; There's more ... ; Finding and sharing code; How to get help; Chapter 2: Be Selective; Introduction; Introducing selection; CSS3 selector basics; Selecting a single element; Getting ready; How to do it ... ; How it works ... ; Selecting multiple elements; Getting ready; How to do it ... ; How it works ... ; Iterating through a selection; Getting ready; How to do it ... ; How it works ... ; Performing subselection; Getting ready; How to do it ... ; How it works ... ; Function chaining; Getting ready; How to do it ... ; How it works ..
Manipulating the raw selectionGetting ready; How to do it ... ; How it works ... ; Chapter 3: Dealing with Data; Introduction; The enter-update-exit pattern; Binding an array as data; Getting ready; How to do it ... ; How it works ... ; Binding object literals as data; Getting ready; How to do it ... ; How it works ... ; Binding functions as data; Getting ready; How to do it ... ; How it works ... ; Working with arrays; Getting ready; How to do it ... ; How it works ... ; Filtering with data; Getting ready; How to do it ... ; How it works ... ; Sorting with data; Getting ready; How to do it ... ; How it works ... ; Loading data from a server
Getting readyHow to do it ... ; How it works ... ; Asynchronous data loading using queue; Getting ready; How to do it ... ; How it works ... ; Chapter 4: Tipping the Scales; Introduction; What are scales?; Using continuous scales; Getting ready; How to do it ... ; How it works ... ; Linear scale; Power scale; Log scale; Using the time scale; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Using the ordinal scale; Getting ready; How to do it ... ; How it works ... ; Interpolating a string; Interpolator; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Interpolating colors; Getting ready
How to do it ... How it works ... ; See also; Interpolating compound objects; Getting ready; How to do it ... ; How it works ... ; Chapter 5: Playing with Axes; Introduction; Working with basic axes; Getting ready; How to do it ... ; How it works ... ; Customizing ticks; Getting ready; How to do it ... ; How it works ... ; Drawing grid lines; Getting ready; How to do it ... ; How it works ... ; Dynamic rescaling of axes; Getting ready; How to do it ... ; How it works ... ; Chapter 6: Transition with Style; Introduction; What is Transition?; Animating a single element; Getting ready; How to do it ... ; How it works ... ; Animating multiple elements
Summary Discover over 65 recipes to help you create breathtaking data visualizations using the latest features of D3 About This Book Learn about D3 4.0 from the inside out and master its new features Utilize D3 packages to generate graphs, manipulate data, and create beautiful presentations Solve real-world visualization problems with the help of practical recipes Who This Book Is For If you are a developer familiar with HTML, CSS, and JavaScript, and you wish to get the most out of D3, then this book is for you. This book can serve as a desktop quick-reference guide for experienced data visualization developers. You'll also find this book useful if you're a D3 user who wants to take advantage of the new features introduced in D3 4.0. You should have previous experience with D3. What You Will Learn Get a solid understanding of the D3 fundamentals and idioms Use D3 to load, manipulate, and map data to any kind of visual representation on the web Create data-driven dynamic visualizations that update as the data does Leverage the various modules provided by D3 to create sophisticated, dynamic, and interactive charts and graphics Create data-driven transitions and animations within your visualizations Understand and leverage more advanced concepts such as force, touch, and Geo data visualizations In Detail This book gives you all the guidance you need to start creating modern data visualizations with D3 4.x that take advantage of the latest capabilities of JavaScript. The book starts with the basic D3 structure and building blocks and quickly moves on to writing idiomatic D3-style JavaScript code. You will learn how to work with selection to target certain visual elements on the page, then you will see techniques to represent data both in programming constructs and its visual metaphor. You will learn how map values in your data domain to the visual domain using scales, and use the various shape functions supported by D3 to create SVG shapes in visualizations. Moving on, you'll see how to use and customize various D3 axes and master transition to add bells and whistles to otherwise dry visualizations. You'll also learn to work with charts, hierarchy, graphs, and build interactive visualizations. Next you'll work with Force, which is one of the most awe-inspiring techniques you can add to your visualizations, and you'll implement a fully functional Choropleth map (a special purpose colored map) in D3. Finally, you'll learn to unit test data visualization co ..
Notes Getting ready
Print version record
Subject Information visualization.
Information visualization -- Data processing
Information visualization
Form Electronic book
ISBN 1786469960
9781786469960