© Tarek Amr and Rayna Stamboliyska 2016

Tarek Amr and Rayna Stamboliyska, Practical D3.js, 10.1007/978-1-4842-1928-7_7

7. Transforming Data with Layouts

Tarek Amr and Rayna Stamboliyska2

(1)Amsterdam, The Netherlands

(2)Issy-les-Moulineaux, Paris, France

In this chapter you will be introduced to layouts. D3 layouts are usually where most of the magic happens, as they can transform your data in different ways for you to be visualize later on. Layouts will be used here to create pie charts, treemaps, and stacked charts; in addition to nontraditional visualizations using the partition and packing layouts.

Pie Chart Layout

Pie and donut charts are probably the most hated charts within the data visualization community. In his book, “The Visual Display of ...

Get Practical D3.js now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.