Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

Transforming Data with Layouts

  • 2078 Accesses


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.


  • Child Node
  • Previous Chapter
  • Line Chart
  • Drawing Area
  • Radial Area

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

This is a preview of subscription content, access via your institution.

Buying options

USD   24.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-1928-7
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   34.99
Price excludes VAT (USA)
Figure 7-1.
Figure 7-2.
Figure 7-3.
Figure 7-4.
Figure 7-5.
Figure 7-6.
Figure 7-7.
Figure 7-8.
Figure 7-9.
Figure 7-10.
Figure 7-11.

Author information

Authors and Affiliations


Rights and permissions

Reprints and Permissions

Copyright information

© 2016 Tarek Amr and Rayna Stamboliyska

About this chapter

Cite this chapter

Amr, T., Stamboliyska, R. (2016). Transforming Data with Layouts. In: Practical D3.js. Apress, Berkeley, CA.

Download citation