Skip to content

PacktPublishing/Learn-D3.js

Repository files navigation

Learn D3.js

Learn D3.js

This is the code repository for Learn D3.js, published by Packt.

Create interactive data-driven visualizations for the web with the D3.js library

What is this book about?

This book is a practical hands-on introduction to D3 (Data-driven Documents): the most popular open-source JavaScript library for creating interactive web-based data visualizations. Based entirely on open web standards, D3 provides an integrated collection of tools for efficiently binding data to graphical elements. If you have basic knowledge of HTML, CSS and JavaScript you can use D3.js to create beautiful interactive web-based data visualizations.

This book covers the following exciting features:

  • Learn to use D3.js version 5 and web standards to create beautiful interactive data-driven visualizations for the web
  • Bind data to DOM elements, applying different scales, color schemes and configuring smooth animated transitions for data updates
  • Generate data structures and layouts for many popular chart formats
  • Apply interactive behaviors to any chart
  • Create thematic maps based on GIS data using different geographical projections with interactive behaviors
  • Load, parse and transform data from JSON and CSV formats

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

<p>See results in console log.</p>
<div id="section">
<p>Paragraph 1</p>
<p>Paragraph 2</p>
</div>
<p>Paragraph 3</p>

Following is what you need for this book: The book is intended for web developers, web designers, data scientists, artists, and any developer who wish to create interactive data visualization for the Web using D3. The book assumes basic knowledge of HTML, CSs, and JavaScript.

With the following software and hardware list you can run all code files present in the book (Chapter 1-11).

Software and Hardware List

Chapter Software required OS required
1 to 11 D3, version 5.9.2 or later Linux, Mac OS, Windows, iOS, Cydia, Android
1 to 11 Any modern browser that supports SVG
and ES2016: Edge, Chrome, Safari, Firefox Linux, Mac OS, Windows, iOS, Cydia, Android
1 to 11 Any code editor, for example Adobe Linux, Mac OS, Windows, iOS, Cydia, Android
Brackets, PHStorm, WebStorm, Visual Studio
Code, TextWrangler, Sublime Text
11 MapShaper (online) Linux, Mac OS, Windows, iOS, Cydia, Android
11 TopoJSON Linux, Mac OS, Windows, iOS, Cydia, Android
11 Versor D3 plugin Linux, Mac OS, Windows, iOS, Cydia, Android
11 Inertia D3 plugin Linux, Mac OS, Windows, iOS, Cydia, Android
1 to 11 Any Web Server (example: npm Linux, Mac OS, Windows, iOS, Cydia, Android
http-server)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Author

Helder da Rocha teaches, writes and develops applications with Java and Web technologies since 1995. In 1996 he wrote one of the first books in Portuguese about HTML and JavaScript, and since then he created hundreds of presentations, tutorials, and course materials on Java, Java EE, programming tools, patterns, techniques, methodologies, HTML, CSS, JavaScript, SVG, XML and related technologies, data visualization, Arduino and Internet of Things. He holds a masters degree in Computer Science. He also has a background in the visual arts and design and has some of his artwork in permanent museum exhibits. He lives in Brazil, where he works as an independent consultant, developer and instructor and a frequent speaker at technological events.

Other books by the authors

Suggestions and Feedback

Click here if you have any feedback or suggestions.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781838645571