万本电子书0元读

万本电子书0元读

顶部广告

Data Visualization with D3 4.x Cookbook - Second Edition电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Nick Zhu

出  版  社:Packt Publishing

出版时间:2017-02-01

字       数:207.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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 code and test-driven development in a visualization project so you know how to produce high-quality D3 code. Style and approach This step-by-step guide to mastering data visualizations with D3 will help you create amazing data visualizations with professional efficiency and precision. It is a solution-based guide in which you learn through practical recipes, illustrations, and code samples.
目录展开

Data Visualization with D3 4.x Cookbook - Second Edition

Data Visualization with D3 4.x Cookbook - Second Edition

Credits

About the Author

About the Reviewer

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

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 objects

Static variable scoping

Getter-setter function

Function chaining

There's more...

Finding and sharing code

How to get help

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 selection

Getting ready

How to do it...

How it works...

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 ready

How to do it...

How it works...

Asynchronous data loading using queue

Getting ready

How to do it...

How it works...

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...

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...

6. Transition with Style

Introduction

What is Transition?

Animating a single element

Getting ready

How to do it...

How it works...

Animating multiple elements

Getting ready

How to do it...

How it works...

Using ease

Getting Ready

How to do it...

How it works...

Using tweening

Getting ready

How to do it...

How it works...

There's more...

Using transition chaining

Getting ready

How to do it...

How it works...

Using transition filter

Getting ready

How to do it...

How it works...

See also

Listening to transitional events

Getting ready

How to do it...

How it works...

Working with timer

Getting ready

How to do it...

How it works...

See also

7. Getting into Shape

Introduction

What is SVG?

Vector

Scalability

Creating simple shapes

Getting ready

How to do it...

How it works...

There's more...

D3 SVG shape generators

See also

Using a line generator

Getting ready

How to do it...

How it works...

See also

Using line curve

Getting ready

How to do it...

How it works...

See Also

Changing line tension

Getting ready

How to do it...

How it works...

Using an area generator

Getting ready

How to do it...

How it works...

Using area curve

Getting ready

How to do it...

How it works...

There's more...

See also

Using an arc generator

Getting ready

How to do it...

How it works...

See also

Implementing arc transition

Getting ready

How to do it...

How it works...

There's more...

See also

8. Chart Them Up

Introduction

D3 chart convention

Creating a line chart

Getting ready

How to do it...

How it works...

Chart object and attributes

Chart body frame rendering

Render axes

Render data series

Creating an area chart

Getting ready

How to do it...

How it works...

Creating a scatterplot chart

Getting ready

How to do it...

How it works...

Creating a bubble chart

Getting ready

How to do it...

How it works...

Creating a bar chart

Getting ready

How to do it...

How it works...

See also

9. Lay Them Out

Introduction

Building a pie chart

Getting ready

How to do it...

How it works...

There's more...

See also

Building a stacked area chart

Getting ready

How to do it...

How it works...

There's more...

Expanded area chart

Streamgraph

See also

Building a treemap

Getting ready

How to do it...

How it works...

See also

Building a tree

Getting ready

How to do it...

How it works...

See also

Building an enclosure diagram

Getting ready

How to do it...

How it works...

See also

10. Interacting with Your Visualization

Introduction

Interacting with mouse events

Getting ready

How to do it...

How it works...

There's more...

See also

Interacting with a multi-touch device

Getting ready

How to do it...

How it works...

There's more...

See also

Implementing zoom and pan behavior

Getting ready

How to do it...

How it works...

There's more...

See also

Implementing drag behavior

Getting ready

How to do it...

How it works...

There's more...

See also

11. Using Force

Introduction

Using gravity and charge

Getting ready

How to do it...

How it works...

Alpha decay

Velocity decay

Charge

Positioning

Collision

Setting up zero force layout

Setting up mutual repulsion

Setting up gravity

Setting up positioning with gravity

Setting up positioning with repulsion

See also

Customizing velocity

Getting ready

How to do it...

How it works...

See also

Setting the link constraint

Getting ready

How to do it...

How it works...

See also

Using force to assist visualization

Getting ready

How to do it...

How it works...

See also

Manipulating force

Getting ready

How to do it...

How it works...

See also

Building a force-directed graph

Getting ready

How to do it...

How it works...

See also

12. Knowing Your Map

Introduction

Projecting the US map

GeoJSON

TopoJSON

Getting ready

How to do it...

How it works...

See also

Projecting the world map

Getting ready

How to do it...

How it works...

See also

Building a choropleth map

Getting ready

How to do it...

How it works...

See also

13. Test Drive Your Visualization

Introduction

Introduction to unit testing

Getting Jasmine and setting up the test environment

Getting ready

How to do it...

How it works...

See also

Test driving your visualization - chart creation

Getting ready

How to do it...

How it works...

Test driving your visualization - SVG rendering

Getting ready

How to do it...

How it works...

Test driving your visualization - pixel-perfect bar rendering

Getting ready

How to do it...

How it works...

See also

Appendix. Building Interactive Analytics in Minutes

Introduction

The crossfilter.js library

How to do it...

How it works...

There's more...

See also

Dimensional charting - dc.js

Getting ready

How to do it...

How it works...

There's more...

See also

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部