Tips and tricks for using D3.js (version 7), one of the leading data visualization tools for the web. It's aimed at getting you started and moving you forward. D3.js can help you make data beautiful. D3 Tips and Tricks is a book written to help those who may be unfamiliar with jаvascript or web page creation get started turning information into visualization.
D3.js (hereafter abridged as D3) is “a jаvascript library for manipulating documents based on data”. But that description doesn’t do it justice. D3 is all about helping you to take information and make it more accessible to others via a web browser. It’s a jаvascript library. That means that it’s a software tool that can be used in conjunction with other software tools to achieve a task. Those other tools are based on web standards such as HTML, SVG and CSS but we don’t need to know too much about them to start using D3 (although it will help :-)). It’s an open framework, which means that there are no hidden mysteries about how it does its magic and it allows others to contribute to a constant cycle of improvement. Being built to leverage web standards means that modern browsers don’t have to do anything special to use D3, they just have to support the framework that the Internet has adopted for ease of use.
What version of d3.js is this written for?
Version 7.x. If you're looking for the edition of this book that was written for version 6.x you can get it here or for version 5.x you can get it here or for version 4.x you can get it here or for 3.x you can find it here...
Is this book for you?
It's not written for experts. It's put together as a guide to get you started if you're unsure what d3.js can do. It reads more like a story as it leads the reader through the basics of line graphs and on to discover animation, tooltips, tables, interfacing with databases via PHP, sankey diagrams, force diagrams, maps and more...
Why was D3 Tips and Tricks originally written?
Because in the process of learning things, it's a great way to remember them if you write them down :-).
As a result, learning how to do cool stuff with D3 meant that I accumulated a sizeable number ways to help me out when the going got tricky. Then I realised that these could be useful for others who were trying out d3.js and who were at a similar knowledge level.
So here we are! A collection of tips and tricks for d3.js written by a noob for people who might consider that they're in the same situation :-).
What's in the book?
I've captured the appropriate code (in cool looking coloured text) and added in heaps of illustrations of what's going on so that you will get more traction at the start of your learning process than I did.
But wait! There's code!
There are over 50 code examples used in the book (with their data files) available to download (still free!) and they will also available online.
The awesome that is Open Source.
Author(s): Malcolm Maclean
Publisher: leanpub.com
Year: 2021
Language: English
Pages: 411
What is d3.js?
Introduction
What do we need to get started?
Starting with a simple graph
Things we can do with the simple graph
Elements, Attributes and Styles
Bar Charts and Histograms
Tree Diagrams
Sankey Diagrams
Bullet Charts
Mapping with d3.js
Assorted Tips and Tricks
D3.js Examples Explained