When comparing D3.js in Action vs D3 Gallery, the Slant community recommends D3 Gallery for most people. In the question“What are the best resources to learn D3.js?” D3 Gallery is ranked 4th while D3.js in Action is ranked 5th. The most important reason people chose D3 Gallery is:
The gallery is [updated frequently](https://github.com/mbostock/d3/wiki/Gallery/_history) with improvements and new examples.
Ranked in these QuestionsQuestion Ranking
Pro Some material available for free
Three chapters of the book are available as a free download.
Pro Comprehensive resource
D3.js in Action is 352 pages long and provides a strong foundation in D3.js before providing you with a comprehensive list of ways it can be used.
Pro Updated often
The gallery is updated frequently with improvements and new examples.
Pro A lot of visual appealing examples including source code
There are hundreds of examples to look at, including the source code. This will give you a great idea of what D3.js is capable of.
Con Intimidating for beginners
Due to the heavy volume of information packed into the book, it can be a discouraging place to start for someone new to D3.js.
Con Examples only
The D3 gallery isn't a tutorial, it only shows examples of graphs created with D3.
For someone completely new to D3, this would likely be an overwhelming place to start.