Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Create web charts with D3
Nelli F., Apress, Berkeley, CA, 2014. 316 pp. Type: Book (978-1-484208-66-3)
Date Reviewed: Oct 8 2015

D3 (or D3.js for data-driven documents), which is a JavaScript library used for data visualization, is described in this book.

The book is intended for JavaScript developers, though some chapters can be used to understand data visualization problems and techniques.

The first chapter shows the types of charts (bar, pie, line, bubble), and how to display charts on the web, by using either Hypertext Markup Language 5 (HTML5) or scalable vector graphics (SVG). The way to run and debug JavaScript is also briefly presented.

I found chapter 2 the most important because it shows the D3 techniques to display charts that are based on customer data. It uses the document object model (DOM) of the HTML document, where the data is displayed. D3 selects parts of the document and applies operators to this selection. An important operator is append, which allows adding elements to the HTML page, such as lines in a list. The charts in D3 are created by adding SVG elements, such as circles or polygons.

The next six chapters show in detail how to create simple types of charts--line, bar, or pie charts--or more complicated ones--candlestick, scatterplot, bubble, and radar charts. Some mathematical aspects are presented: domain, range, and the transformation scale. These chapters contain mostly the code in D3 and the charts produced. The data used here is stored in text files (of the .csv or .tsv types).

Chapter 9 shows how to get real data directly from a database. The last chapters show how to add controls to charts (such as checkboxes or sliders) and how to work with D3 layouts.

This book is very useful, because D3 is new and popular software. The presentation is clear, especially when it comes to more difficult concepts. The documentation is detailed and accompanied by many code snippets.

Reviewer:  Claudiu Popescu Review #: CR143838 (1512-0996)
Bookmark and Share
  Reviewer Selected
Featured Reviewer
 
 
General (D.1.0 )
 
 
Javascript (D.3.2 ... )
 
 
Reference (A.2 )
 
Would you recommend this review?
yes
no
Other reviews under "General": Date
Problems in programming
Vitek A., Tvrdy I., Reinhardt R., Mohar B. (ed), Martinec M., Dolenc T., Batagelj V. (ed), John Wiley & Sons, Inc., New York, NY, 1991. Type: Book (9780471930174)
Aug 1 1992
KNOs: KNowledge acquisition, dissemination, and manipulation Objects
Tsichritzis D., Fiume E., Gibbs S., Nierstrasz O. ACM Transactions on Information Systems 5(1): 96-112, 1987. Type: Article
Nov 1 1987
Programmer perceptions of productivity and programming tools
Hanson S. (ed), Rosinski R. Communications of the ACM 28(2): 180-189, 1985. Type: Article
Jul 1 1985
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy