Learning d3.js Data Visualization - Second Edition

Ændrew Rininsland, Swizec Teller

  • 出版商: Packt Publishing
  • 出版日期: 2016-04-28
  • 售價: $1,560
  • 貴賓價: 9.5$1,482
  • 語言: 英文
  • 頁數: 272
  • 裝訂: Paperback
  • ISBN: 1785889044
  • ISBN-13: 9781785889042
  • 相關分類: Data-visualization
  • 海外代購書籍(需單獨結帳)



Key Features

  • Understand how to best represent your data by developing the right kind of visualization
  • Harness the power of D3 by building interactive and real-time data-driven web visualizations
  • This book will provide a strong foundation in designing compelling web visualizations with D3.js

Book Description

D3 has emerged as one of the leading platforms to develop beautiful, interactive visualizations over the web. We begin by setting up a strong foundation, then build on this foundation book will take you through the entire world of reimagining data using interactive, animated visualizations created in D3.js.

In addition to covering the various features of D3.js to build a wide range of visualizations, we also focus on the entire process of representing data through visualizations so that developers and those interested in data visualization will get the entire process right.

We also include chapters that explore a wide range of visualizations through practical use cases. By the end of this book, you will have unlocked the mystery behind successful data visualizations and will be ready to use D3 to transform any data into a more engaging and sophisticated visualization.

What you will learn

  • Gain a solid understanding of the common D3 development idioms
  • Be able to input data, transform it, and output it as a visualization
  • Add simple effects and user interactions to a visualization
  • Find out how to write basic D3 code for server using Node.js
  • Automate testing visualizations using Mocha
  • Achieve fluency in ES2015, the most modern version of JavaScript

About the Author

Ændrew Rininsland is a developer and journalist who has spent much of the last half-decade building interactive content for newspapers such as The Times, Sunday Times, The Economist, and The Guardian. During his 3 years at The Times and Sunday Times, he worked on all kinds of editorial projects, ranging from obituaries of figures such as Nelson Mandela to high-profile data-driven investigations such as The Doping Scandal, the largest leak of sporting blood test data in history.

A prolific open source developer, Ændrew has released many kinds of projects, ranging from small utility libraries such as Doctop (which allow the creation of live updating datasets using Google Docs) to big charting tools such as AxisJS. He is also a co-maintainer of C3.js, a widely used abstraction of D3 that greatly speeds up the creation of several basic chart types, and GitHub.js, a library that makes it easy to interact with the GitHub API.

You can follow him on Twitter at @aendrew and on GitHub at github.com/aendrew.

Swizec Teller author of Data Visualization with d3.js, is a geek with a hat. Founding his first startup at 21, he is now looking for the next big idea as a full-stack web generalist focusing on freelancing for early-stage startup companies.

When he isn't coding, he's usually blogging, writing books, or giving talks at various non-conference events in Slovenia and nearby countries. He is still looking for a chance to speak at a big international conference.

In November 2012, he started writing Why Programmers Work At Night, and set out on a quest to improve the lives of developers everywhere.

Table of Contents

  1. Getting Started with D3, ES2016, and Node.js
  2. A Primer on DOM, SVG, and CSS
  3. Making Data Useful
  4. Defining the User Experience – Animation and Interaction
  5. Layouts – D3's Black Magic
  6. D3 on the Server with Node.js
  7. Designing Good Data Visualizations
  8. Having Confidence in Your Visualizations



  • 通過開發適當的可視化方式,了解如何最佳地呈現您的數據

  • 通過構建互動和實時數據驅動的網絡可視化,發揮 D3 的威力

  • 本書將為您提供使用 D3.js 設計引人入勝的網絡可視化的堅實基礎


D3 已成為開發美麗、互動式網絡可視化的領先平台之一。我們首先建立堅實的基礎,然後在此基礎上,本書將帶您進入使用 D3.js 創造互動、動畫可視化的全新世界。

除了介紹 D3.js 的各種功能以構建各種可視化外,我們還專注於通過可視化來表示數據的整個過程,以便開發人員和對數據可視化感興趣的人能夠正確地理解整個過程。

我們還包括一些通過實際用例探索各種可視化的章節。通過閱讀本書,您將揭開成功數據可視化背後的神秘面紗,並準備好使用 D3 將任何數據轉化為更具吸引力和複雜性的可視化。


  • 深入了解常見的 D3 開發習慣

  • 能夠將數據輸入、轉換並輸出為可視化

  • 為可視化添加簡單的效果和用戶交互

  • 了解如何使用 Node.js 編寫基本的 D3 服務器代碼

  • 使用 Mocha 自動化測試可視化

  • 熟練掌握 ES2015,即最新版本的 JavaScript


Ændrew Rininsland 是一位開發人員和記者,他在過去的半個十年中一直為報紙(如《泰晤士報》、《星期日泰晤士報》、《經濟學人》和《衛報》)建立互動內容。在《泰晤士報》和《星期日泰晤士報》的三年期間,他參與了各種編輯項目,從紀念尼爾森·曼德拉等人物的訃聞到有史以來最大的體育血液測試數據洩漏事件等高調數據驅動調查。

作為一位多產的開源開發人員,Ændrew 發布了許多項目,從小型實用庫(如 Doctop,可使用 Google Docs 創建實時更新的數據集)到大型圖表工具(如 AxisJS)。他還是 C3.js 的共同維護者,C3.js 是一個廣泛使用的 D3 抽象,大大加快了幾種基本圖表類型的創建速度,還有 GitHub.js,一個使與 GitHub API 交互變得容易的庫。

您可以在 Twitter 上關注他的動態,帳號為 @aendrew,GitHub 上的帳號為 github.com/aendrew。

Swizec Teller 是《Data Visualization with d3.js》的作者,是一位戴著帽子的技術愛好者。他在 21 歲時創辦了自己的第一家初創公司,現在作為全棧網絡通才專注於為早期初創公司提供自由職業服務,尋找下一個大點子。


2012 年 11 月,他開始撰寫《Why Programmers Work At Night》,並開始致力於改善開發人員的生活。


  1. 使用 D3、ES2016 和 Node.js 開始

  2. DOM、SVG 和 CSS 簡介

  3. 使數據有用

  4. 定義用戶體驗 - 動畫和交互

  5. 佈局 - D3 的黑魔法

  6. 使用 Node.js 在服務器上運行 D3

  7. 設計良好的數據可視化

  8. 對可視化結果充滿信心