精通数据可视化:D3.js实战指南

5星 · 超过95%的资源 需积分: 12 323 下载量 103 浏览量 更新于2024-07-24 1 收藏 3.43MB PDF 举报
"Data Visualization with D3.js 是一本关于使用D3.js进行数据可视化的书籍,作者Swizec Teller,由Packt Publishing在2013年出版。本书适合对JavaScript有一定基础的读者,旨在帮助读者理解并掌握D3.js,通过详细的工作流程创建自己的数据可视化作品。" D3.js(Data-Driven Documents)是一个强大的JavaScript库,它允许开发者利用HTML、SVG和CSS将数据转换成具有视觉吸引力的交互式图形。本书以20个详尽的例子引导读者逐步学习D3.js的核心概念,从基础的线条绘制到复杂的动态可视化和互动设计。 首先,书中介绍了如何使用SVG(可缩放矢量图形)来绘制图形,包括基本形状和路径生成器。SVG使得图形可以被精确地控制,并且在放大时保持清晰。接着,读者会学习如何结合HTML和CSS来添加样式,提升可视化图形的外观和用户体验。 在数据处理方面,书中的内容涵盖了如何有效地使用数据结构,如处理时间序列数据和进行地理投影。此外,读者还将了解到函数式编程的基本概念,这对于理解和使用D3.js的API至关重要。书中还探讨了如何动态更新可视化,当数据变化时,图形也能随之更新,以反映最新的数据状态。 动画是D3.js的一个强大特性,本书指导读者如何创建动态可视化效果,使数据故事更加生动。同时,通过引入用户交互,读者可以学习如何让观众探索和交互数据,提升可视化信息的传达效率。 布局是构建复杂图形的关键,D3.js提供了多种布局算法,如力导向图、树图等,读者将学习如何利用这些工具创建出复杂而有层次的可视化作品。最后,书中讨论了如何判断一个好的可视化作品,强调了设计原则和视觉表现力的重要性。 《Data Visualization with D3.js》是一本实践性强、实例丰富的教程,旨在帮助读者不仅理解D3.js的基本用法,还能掌握数据可视化的设计理念和技巧,从而独立创建出高质量的数据可视化项目。
2017-05-04 上传
D3.js 4.x Data Visualization - Third Edition by Andrew Rininsland English | 28 Apr. 2017 | ASIN: B01MG90SSJ | 308 Pages | AZW3 | 6.6 MB Key Features Build interactive and rich graphics and visualization using JavaScript`s powerful library D3.js Learn D3 from the ground up, using the all-new version 4 of the library Gain insight into producing high-quality, extensible charts and visualizations using best practices such as writing testable, extensible code and strong typing Book Description Want to get started with impressive interactive visualizations and implement them in your daily tasks? This book offers the perfect solution-D3.js. It has emerged as the most popular tool for data visualization. This book will teach you how to implement the features of the latest version of D3 while writing JavaScript using the newest tools and technique You will start by setting up the D3 environment and making your first basic bar chart. You will then build stunning SVG and Canvas-based data visualizations while writing testable, extensible code,as accurate and informative as it is visually stimulating. Step-by-step examples walk you through creating, integrating, and debugging different types of visualization and will have you building basic visualizations (such as bar, line, and scatter graphs) in no time. By the end of this book, you will have mastered the techniques necessary to successfully visualize data and will be ready to use D3 to transform any data into an engaging and sophisticated visualization. What you will learn Map data to visual elements using D3's scales Draw SVG elements using D3's shape generators Transform data using D3's collection methods Use D3's various layout patterns to quickly generate various common types of chart Write modern JavaScript using ES2017 and Babel Explore the basics of unit testing D3 visualizations using Mocha and Chai Write and deploy a simple Node.js web service to render charts via HTML Canvas Understand what makes a good data visualization and how to use the tools at your disposal to create accurate charts About the Author Andrew Rininsland is a developer and journalist who has spent much of the last half a decade building interactive content for newspapers such as The Financial Times, 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. He is currently a senior developer with the interactive graphics team at the Financial Times. Swizec Teller, author of Data Visualization with d3.js, is a geek with a hat. He founded his first start-up at the age of 21 years and is now looking for the next big idea as a full-stack Web generalist focusing on freelancing for early-stage start-up 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 Getting Started with D3, ES2017, and Node.js A Primer on DOM, SVG, and CSS Shape Primitives of D3 Making Data Useful Defining the User Experience - Animation and Interaction Hierarchical Layouts of D3 The Other Layouts D3 on the Server with Canvas, Koa 2, and Node.js Having Confidence in Your Visualizations Designing Good Data Visualizations