D3 Start to Finish

D3 Start to Finish


作者: Peter Cook
出版社:Create With Data
出版时间:2022年 06月

/ 10



Peter Cook   


D3 Start to Finish teaches you how to build a custom, interactive and beautiful data visualisation using the JavaScript library D3.js (versions 6 and 7).The book covers D3 concepts such as selections, joins, requests, scale functions, event handling and transitions. It also covers general web development techniques such as state management and modularisation. In other words, everything you need to know to build a real world, custom data visualisation.You'll also learn how to put these concepts into practice by building an interactive data visualisation called Energy Explorer. This is a custom data visualisation that visualises the energy mix of 141 countries. There are 15 separate build steps and you're taken through each step in detail. There's also a code download link for all 15 steps so you can follow along.Some of the topics covered are:- requesting CSV data using D3- D3 data joins (including joining nested data)- architecting a data visualisation using a layout function- detailed styling using CSS- adding a popup using Flourish's popup library- state management- animations using D3 transitions- data manipulation using Lodash- adding a menu, legend and footer
About the authorPeter Cook has built data visualisations for Carbon Tracker, London Datastore and McGraw Hill Education. He currently works as a senior visualisation developer at Flourish and also writes about the how-to of data visualisation for Create With Data. He's run training courses for clients such as the BBC and The Economist and written data visualisation tutorials for Flowing Data and Creative Bloq. He created D3 in Depth and Create With Data.
Reviews"One of the best D3 books I've read. The contents are very clear, it is easy to follow and the concepts are very solid."- Javier García Fernández (Journalist & developer)
"Teaching D3 is hard and it's been very useful to have a resource like Peter's D3 in Depth website to send students to. With this book Peter delivers something rather more substantial - a non-trivial D3 visualisation built from the ground up. You get the hard earned pro-tips and perspectives delivered in a realistic context - pretty much the gold standard for learning."- Kyran Dale (author of Data Visualization with Python and JavaScript (O'Reilly))
"I’d very much recommend this book to anyone who needs to rapidly get up to speed with D3, whether they are an experienced developer or a relative novice. It will give you all the tools and knowledge to create professional grade visualisations."- Mike Hadlow (Developer & blogger)